mirror of
https://github.com/zyllian/webdog.git
synced 2025-01-17 19:22:21 -08:00
fix bug when serving on a host or port different from default
This commit is contained in:
parent
4265317edd
commit
9608925572
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
let socket;
|
||||
|
||||
function start(reload) {
|
||||
socket = new WebSocket("ws://127.0.0.1:8080");
|
||||
socket = new WebSocket(`ws://${location.host}`);
|
||||
let reloading = false;
|
||||
socket.onmessage = function (ev) {
|
||||
if (ev.data === "reload") {
|
||||
|
|
Loading…
Add table
Reference in a new issue