make target element mandatory for main func
This commit is contained in:
parent
8e7aa7d453
commit
5adb8806dc
5 changed files with 34 additions and 16 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue