From 261f1f0bf26f0f7127142e1bdfff4267fc3ff286 Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 9 Aug 2022 21:34:18 +0200 Subject: [PATCH] fix electron --- src/www | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/www b/src/www index e3a26de4d..4652c785c 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);