浏览代码

:bug: 桌面端内核在授权页自动退出 https://github.com/siyuan-note/insider/issues/1099

Liang Ding 2 年之前
父节点
当前提交
30448da5dd
共有 2 个文件被更改,包括 1 次插入3 次删除
  1. 0 2
      app/electron/init.html
  2. 1 1
      app/stage/auth.html

+ 0 - 2
app/electron/init.html

@@ -361,8 +361,6 @@
       })
     })
   })
-  // 防止内核长时间不用被回收
-  new WebSocket(`${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws?app=siyuan&id=init`);
 </script>
 </body>
 </html>

+ 1 - 1
app/stage/auth.html

@@ -495,7 +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`);
 </script>
 </body>