From a229ba9c15a8a034726915f7423aefa42ef65b05 Mon Sep 17 00:00:00 2001 From: Araxeus Date: Wed, 28 Apr 2021 02:46:13 +0300 Subject: [PATCH] disable reload of plugins on window created --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a21f45f4..9cdc0ceb 100644 --- a/index.js +++ b/index.js @@ -38,7 +38,7 @@ if (config.get("options.proxy")) { // Adds debug features like hotkeys for triggering dev tools and reload require("electron-debug")({ - showDevTools: false, //disable automatic devTools on new window + showDevTools: false //disable automatic devTools on new window }); // Prevent window being garbage collected @@ -154,7 +154,7 @@ function createMainWindow() { return win; } -app.on("browser-window-created", (event, win) => { +app.once("browser-window-created", (event, win) => { loadPlugins(win); win.webContents.on("did-fail-load", () => {