From 1d62ac3883222ca2b4ff2aad6e6bb7b394328efd Mon Sep 17 00:00:00 2001 From: onezDerv Date: Mon, 30 Sep 2024 08:37:56 -0400 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) });