Update index.html
Browse files- index.html +5 -1
index.html
CHANGED
@@ -39,7 +39,11 @@
|
|
39 |
<input id="upload" type="file" accept="image/*" />
|
40 |
</form>
|
41 |
|
42 |
-
<script src="index.js" type="module"
|
|
|
|
|
|
|
|
|
43 |
</body>
|
44 |
|
45 |
</html>
|
|
|
39 |
<input id="upload" type="file" accept="image/*" />
|
40 |
</form>
|
41 |
|
42 |
+
<script src="index.js" type="module">
|
43 |
+
document.addEventListener('DOMContentLoaded', async () => {
|
44 |
+
await import('./index.js');
|
45 |
+
});
|
46 |
+
</script>
|
47 |
</body>
|
48 |
|
49 |
</html>
|