From 161dfcd1f9e1c85dc625fc426a480db9aa03fe2b Mon Sep 17 00:00:00 2001 From: ari melody Date: Sat, 30 Sep 2023 08:37:30 +0100 Subject: [PATCH] fixed hostname directing to localhost LOL --- public/scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/main.js b/public/scripts/main.js index c4a7efc..37dcf8d 100644 --- a/public/scripts/main.js +++ b/public/scripts/main.js @@ -56,7 +56,7 @@ function loop() { } function connect() { - client = new WebSocket("wss://localhost:8080"); + client = new WebSocket("wss://" + window.location.host); client.addEventListener('open', () => { // insert_text('\x00');