fix https on port 8081

This commit is contained in:
Sebastian 2023-04-03 12:14:25 -03:00
parent d9c39f53d6
commit 1e94777aa9
No known key found for this signature in database
GPG Key ID: 173909D1A5F66069

View File

@ -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 {