dynamic domain
This commit is contained in:
parent
6b861a3a65
commit
caf7b59497
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,8 @@
|
||||||
</style>
|
</style>
|
||||||
<script src="../worker_specs/reconnecting-websocket.min.js"></script>
|
<script src="../worker_specs/reconnecting-websocket.min.js"></script>
|
||||||
<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', () => {
|
ws.addEventListener('open', () => {
|
||||||
|
|
Loading…
Reference in a new issue