Selaa lähdekoodia

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

Vanessa 2 vuotta sitten
vanhempi
commit
cca4eeb207
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      app/electron/init.html
  2. 1 1
      app/stage/auth.html

+ 1 - 1
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`);
 </script>
 </body>
 </html>

+ 1 - 1
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`);
 </script>
 </body>
 </html>