mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-08-01 21:40:17 +00:00
Update browserWindows.js
This commit is contained in:
@@ -202,6 +202,15 @@ module.exports = (socket, app) => {
|
||||
proxyToCredentialsMap[options.proxy] = options.proxyCredentials;
|
||||
}
|
||||
window.on('ready-to-show', () => {
|
||||
try {
|
||||
window.id;
|
||||
}
|
||||
catch (error) {
|
||||
if (error.message === 'Object has been destroyed') {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (readyToShowWindowsIds.includes(window.id)) {
|
||||
readyToShowWindowsIds = readyToShowWindowsIds.filter(value => value !== window.id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user