This commit is contained in:
Mirco Wittrien 2020-04-11 18:32:45 +02:00
parent 4bb542199e
commit 41117f315b
2 changed files with 2 additions and 1 deletions

View File

@ -3872,6 +3872,7 @@
if (typeof browserWindow.removeMenu == "function") browserWindow.removeMenu();
else browserWindow.setMenu(null);
browserWindow.loadURL(url);
browserWindow.executeJavaScriptSafe = javaJS => {if (!browserWindow.isDestroyed()) browserWindow.webContents.executeJavaScript(javaJS);};
plugin.browserWindows.push(browserWindow);
return browserWindow;
};

File diff suppressed because one or more lines are too long