From 3f87f3da5e21fd4c105bc234e3cb23e00ef9ef40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A2=96=E9=80=B8?= <49649786+Zuoqiu-Yingyi@users.noreply.github.com> Date: Wed, 25 Jan 2023 19:46:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=20HTTPS=20=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E8=AE=BF=E9=97=AE=E8=AE=A4=E8=AF=81=E9=A1=B5=E9=9D=A2=E6=97=B6?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=BB=BA=E7=AB=8B=20Web=20Socket=20=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=20(#7161)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/stage/auth.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/stage/auth.html b/app/stage/auth.html index e3135a82c..bbb10d5a5 100644 --- a/app/stage/auth.html +++ b/app/stage/auth.html @@ -529,7 +529,7 @@ } // 用于授权页保持连接,避免非常驻内存内核自动退出 https://github.com/siyuan-note/insider/issues/1099 - new WebSocket(window.location.protocol === 'https:' ? 'wss' : 'ws' + '://' + window.location.host + '/ws?app=siyuan&id=auth') + new WebSocket(`${window.location.protocol === 'https:' ? 'wss' : 'ws'}://${window.location.host}/ws?app=siyuan&id=auth`)