From 3d360346bac62fd3f7b4639f3ec62701ba1c8f8d Mon Sep 17 00:00:00 2001 From: naiba Date: Sun, 25 Oct 2020 09:57:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20window.location.protocol?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/template/page/home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource/template/page/home.html b/resource/template/page/home.html index 23e88c5..ba32d97 100644 --- a/resource/template/page/home.html +++ b/resource/template/page/home.html @@ -126,7 +126,7 @@ } } }) - const wsProtocol = window.location.protocol == "https" ? "wss" : "ws" + const wsProtocol = window.location.protocol == "https:" ? "wss" : "ws" const ws = new WebSocket(wsProtocol + '://' + window.location.host + '/ws'); ws.onopen = function (evt) { $.suiAlert({