use local port
This commit is contained in:
parent
22a3017d52
commit
60929c34f3
@ -2,8 +2,7 @@
|
||||
|
||||
function setupLiveReload(): void {
|
||||
const protocol = window.location.protocol === "http:" ? "ws:" : "wss:";
|
||||
const port = window.location.protocol === "http:" ? "8080" : "8081";
|
||||
const ws = new WebSocket(`${protocol}//localhost:${port}/ws`);
|
||||
const ws = new WebSocket(`${protocol}//${window.location.hostname}:${window.location.port}/ws`);
|
||||
|
||||
ws.addEventListener("message", (message) => {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user