dynamic domain

This commit is contained in:
Ruben van de Ven 2021-10-17 10:39:37 +02:00
parent 6b861a3a65
commit caf7b59497
1 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,8 @@
</style>
<script src="../worker_specs/reconnecting-websocket.min.js"></script>
<script>
let ws = new ReconnectingWebSocket('ws://localhost:8888/config/ws')
let ws = new ReconnectingWebSocket('ws://'+location.hostname+':'+location.port+'/config/ws')
ws.addEventListener('open', () => {