fix electron

This commit is contained in:
zadam 2022-08-09 21:34:18 +02:00
parent 8588ed5eec
commit 261f1f0bf2

View File

@ -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 * its startup is slower than focusing the existing process/window. So in the end it works out without having
* to do complex evaluation. * to do complex evaluation.
*/ */
require("electron").app.requestSingleInstanceLock(); if (utils.isElectron()) {
require("electron").app.requestSingleInstanceLock();
}
app.set('port', port); app.set('port', port);
app.set('host', host); app.set('host', host);