Browse Source

:bug: fix https://github.com/siyuan-note/insider/issues/1099

Vanessa 2 years ago
parent
commit
9743702a79
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/electron/init.html

+ 2 - 0
app/electron/init.html

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