cleanup code, initialize client on opening window

This commit is contained in:
Sharon Kennedy
2020-02-05 13:42:34 -05:00
parent 5391338d7f
commit 620f7017f3
5 changed files with 149 additions and 121 deletions

View File

@@ -8,7 +8,20 @@
<script src="./widget.js"></script>
<script>
EmbeddableWidget.mount();
var theme = {
themeColor: "#008080",
lightColor: "#FFF8F0",
darkColor: "#22333B",
errorColor: "#FFFACD",
font: "'Assistant', 'Helvetica', sans-serif",
placement: "right"
};
EmbeddableWidget.mount({
matrixServerUrl: "https://matrix.rhok.space",
roomName: "Support Chat",
theme: theme
});
</script>
</body>
</html>