Skip to content

Commit

Permalink
disable reload of plugins on window created
Browse files Browse the repository at this point in the history
  • Loading branch information
Araxeus committed Apr 27, 2021
1 parent e4eed2e commit a229ba9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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", () => {
Expand Down

0 comments on commit a229ba9

Please sign in to comment.