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>
|
||||
<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>
|
Reference in a new issue