From 2dd141068f260293c5cda840623b6f9e0b181538 Mon Sep 17 00:00:00 2001 From: biglyderv Date: Mon, 25 Nov 2024 14:14:20 -0500 Subject: [PATCH] sdf --- static/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/index.js b/static/js/index.js index 7bb58e8..afbe7fa 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -123,7 +123,7 @@ class Game extends GameBasic { let that = this; - this.ws = new WebSocket(window.location.href); + this.ws = new WebSocket(origin); this.ws.addEventListener('message', function (e) { that.recv(e) });