From 5e794b9368f3c65b8537b03b1750f7b220688090 Mon Sep 17 00:00:00 2001
From: Midhun Suresh <midhunr@element.io>
Date: Wed, 29 Dec 2021 16:55:25 +0530
Subject: [PATCH] Use example config for easy development

---
 config.json | 4 ++++
 index.html  | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
 create mode 100644 config.json

diff --git a/config.json b/config.json
new file mode 100644
index 0000000..c090f1f
--- /dev/null
+++ b/config.json
@@ -0,0 +1,4 @@
+{
+    "homeserver": "http://localhost:8008",
+    "auto_join_room": "!nXJtsUatHBGyIYfyYw:matrix.org"
+}
\ No newline at end of file
diff --git a/index.html b/index.html
index 19dd971..00f5a61 100644
--- a/index.html
+++ b/index.html
@@ -7,7 +7,7 @@
     <title>Vite App</title>
   </head>
   <body>
-    <div id="app" class="hydrogen"></div>
+    <div id="chatterbox" class="hydrogen" data-config-link="./config.json"></div>
     <script type="module" src="/src/main.ts"></script>
   </body>
 </html>
-- 
GitLab