address MR comments

This commit is contained in:
Ginger Wong
2020-08-26 00:51:40 -07:00
parent 6457015406
commit b399fbba22
7 changed files with 122 additions and 126 deletions

View File

@@ -8,22 +8,17 @@
<link href="./styles/standalone-chat.css" rel="stylesheet" />
<script src="//unpkg.com/showdown/dist/showdown.min.js"></script>
</head>
<body>
<div id="messages-only"></div>
<script type="module">
import { render, h } from 'https://unpkg.com/preact?module';
import htm from 'https://unpkg.com/htm?module';
const html = htm.bind(h);
import { render, html } from 'https://unpkg.com/htm/preact/standalone.module.js';
import StandaloneChat from './js/app-standalone-chat.js';
(function () {
render(html`<${StandaloneChat} messagesOnly />`, document.getElementById("messages-only"));
})();
render(
html`<${StandaloneChat} messagesOnly />`, document.getElementById("messages-only")
);
</script>
</body>
</html>