dynamic domain

This commit is contained in:
Ruben van de Ven 2021-10-17 10:39:37 +02:00
parent 6b861a3a65
commit caf7b59497

View file

@ -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', () => {