aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-04-03 12:14:25 -0300
committerSebastian <sebasjm@gmail.com>2023-04-03 12:14:25 -0300
commit1e94777aa983cf5309ba738efd6f7689db20b92c (patch)
tree4a520c6b35cb0fa860ac50ad918b226cc0a882fc
parentd9c39f53d6870bfd59eed6a75ffb0ce4c94a4582 (diff)
fix https on port 8081
-rw-r--r--packages/web-util/src/live-reload.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/web-util/src/live-reload.ts b/packages/web-util/src/live-reload.ts
index b65d472c1..8e5e7da71 100644
--- a/packages/web-util/src/live-reload.ts
+++ b/packages/web-util/src/live-reload.ts
@@ -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 {