mirror of
https://github.com/zadam/trilium.git
synced 2026-02-16 11:26:55 +01:00
fix electron
This commit is contained in:
4
src/www
4
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);
|
||||
|
||||
Reference in New Issue
Block a user