We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd05a9b commit 42ae5f5Copy full SHA for 42ae5f5
alwaysontop/render.js
@@ -241,6 +241,10 @@ class AlwaysOnTop extends EventEmitter {
241
*/
242
_onNewAlwaysOnTopBrowserWindow(windowId) {
243
this._alwaysOnTopBrowserWindow = remote.BrowserWindow.fromId(windowId);
244
+ if (!this._alwaysOnTopBrowserWindow || this._alwaysOnTopBrowserWindow.isDestroyed()){
245
+ return;
246
+ }
247
+
248
const { webContents } = this._alwaysOnTopBrowserWindow;
249
// if the window is still loading we may end up loosing the injected content when load finishes. We need to wait
250
// for the loading to be completed. We are using the browser windows events instead of the DOM window ones because
0 commit comments