make target element mandatory for main func

This commit is contained in:
Zutatensuppe 2021-05-13 17:20:10 +02:00
parent 8e7aa7d453
commit 5adb8806dc
5 changed files with 34 additions and 16 deletions

View file

@ -21,6 +21,9 @@
<script>window.GAME_ID = '{{GAME_ID}}'</script>
<script>window.WS_ADDRESS = '{{WS_ADDRESS}}'</script>
<script>window.MODE = 'replay'</script>
<script src="/game.js" type="module"></script>
<script type="module">
import main from '/game.js'
main(document.getElementById('app'))
</script>
</body>
</html>