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

View File

@ -3835,6 +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 browserWindow.removeMenu == "function") browserWindow.removeMenu();
else browserWindow.setMenu(null);

File diff suppressed because one or more lines are too long