From 4bf95d0ca4859f29b9e8f260d636cb4353838c3b Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 8 Dec 2022 20:56:51 +0800 Subject: [PATCH] :art: Clean code --- app/stage/auth.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/stage/auth.html b/app/stage/auth.html index 38ddc65ba..9e79793b0 100644 --- a/app/stage/auth.html +++ b/app/stage/auth.html @@ -397,7 +397,7 @@ exitSiYuan() }) } catch (e) { - console.log(e) + // console.log(e) } const exitApp = () => { @@ -495,6 +495,7 @@ }, 6000) }) } + // 用于授权页保持连接,避免非常驻内存内核自动退出 https://github.com/siyuan-note/insider/issues/1099 new WebSocket(`${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws?app=siyuan&id=auth`);