This commit is contained in:
Mirco Wittrien 2020-07-28 12:57:38 +02:00
parent 4170c88758
commit 1d2a4cc9e1
2 changed files with 2 additions and 2 deletions

View File

@ -3835,7 +3835,7 @@
if (!config.show && config.showOnReady) browserWindow.once("ready-to-show", browserWindow.show);
if (config.devTools) browserWindow.openDevTools();
if (typeof config.onLoad == "function") browserWindow.webContents.on("did-finish-load", (...args) => {config.onLoad(...args);});
if (typeof config.onClose == "function") browserWindow.webContents.on("closed", (...args) => {config.onClose(...args);});
if (typeof config.onClose == "function") browserWindow.once("closed", (...args) => {config.onClose(...args);});
if (typeof browserWindow.removeMenu == "function") browserWindow.removeMenu();
else browserWindow.setMenu(null);

File diff suppressed because one or more lines are too long