mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
avoid dynamic import as ff doesn't support it yet
This commit is contained in:
parent
ffd3d740c5
commit
2a4d687160
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 New Issue
Block a user