forked from mystiq/hydrogen-web
avoid dynamic import as ff doesn't support it yet
This commit is contained in:
parent
ffd3d740c5
commit
2a4d687160
1 changed files with 6 additions and 4 deletions
10
index.html
10
index.html
|
@ -6,12 +6,14 @@
|
||||||
<body>
|
<body>
|
||||||
<p id="syncstatus"></p>
|
<p id="syncstatus"></p>
|
||||||
<div><button id="stopsync">stop syncing</button></div>
|
<div><button id="stopsync">stop syncing</button></div>
|
||||||
<script>
|
<script type="module">
|
||||||
|
import main from "./src/main.js";
|
||||||
const label = document.getElementById("syncstatus");
|
const label = document.getElementById("syncstatus");
|
||||||
const button = document.getElementById("stopsync");
|
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>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in a new issue