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