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