From 9743702a79a2f1cd92dee00b4107258452daa07e Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 26 Oct 2022 10:38:03 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/insider/issues/1099 --- app/electron/init.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/electron/init.html b/app/electron/init.html index 0fd6694e6..01f55b8a4 100644 --- a/app/electron/init.html +++ b/app/electron/init.html @@ -361,6 +361,8 @@ }) }) }) + // 防止内核长时间不用被回收 + new WebSocket(`${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws`);