From cca4eeb2073bf1aa2803a4cdb8e5cd52b94b4fee Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 26 Oct 2022 10:44:39 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/insider/issues/1099 --- app/electron/init.html | 2 +- app/stage/auth.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/electron/init.html b/app/electron/init.html index 01f55b8a4..d9b66a0d4 100644 --- a/app/electron/init.html +++ b/app/electron/init.html @@ -362,7 +362,7 @@ }) }) // 防止内核长时间不用被回收 - new WebSocket(`${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws`); + new WebSocket(`${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws?app=siyuan&id=init`); diff --git a/app/stage/auth.html b/app/stage/auth.html index 5e9c42900..bebf64075 100644 --- a/app/stage/auth.html +++ b/app/stage/auth.html @@ -496,7 +496,7 @@ }) } // 防止内核长时间不用被回收 - new WebSocket(`${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws`); + new WebSocket(`${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws?app=siyuan&id=auth`);