avoid dynamic import as ff doesn't support it yet

This commit is contained in:
Bruno Windels 2019-02-16 02:53:02 +01:00
parent ffd3d740c5
commit 2a4d687160

View File

@ -6,12 +6,14 @@
<body>
<p id="syncstatus"></p>
<div><button id="stopsync">stop syncing</button></div>
<script>
<script type="module">
import main from "./src/main.js";
const label = document.getElementById("syncstatus");
const button = document.getElementById("stopsync");
import("./src/main.js").then(main => {
main.default(label, button);
});
//import("./src/main.js").then(main => {
main(label, button);
//});
</script>
</body>
</html>