stuff
This commit is contained in:
parent
4170c88758
commit
1d2a4cc9e1
|
@ -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
Loading…
Reference in New Issue