Skip to content

Build your personal knowledge base with Trilium Notes

fix electron

zadam261f1f0bf26f
diff --git a/src/www b/src/www
index e3a26de4dc..4652c785c0 100644
--- a/src/www
+++ b/src/www
@@ -51,7 +51,9 @@ async function startTrilium() {
* its startup is slower than focusing the existing process/window. So in the end it works out without having
* to do complex evaluation.
*/
- require("electron").app.requestSingleInstanceLock();
+ if (utils.isElectron()) {
+ require("electron").app.requestSingleInstanceLock();
+ }
app.set('port', port);
app.set('host', host);