diff --git a/package-lock.json b/package-lock.json index 78bf5668..f191e1e9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "jitsi-meet-electron-utils", - "version": "2.0.4", + "version": "2.0.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0adea80f..ef669fda 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jitsi-meet-electron-utils", - "version": "2.0.4", + "version": "2.0.5", "description": "Utilities for jitsi-meet-electron project", "main": "index.js", "scripts": { diff --git a/screensharing/main.js b/screensharing/main.js index 85da9fff..4f427fc2 100644 --- a/screensharing/main.js +++ b/screensharing/main.js @@ -94,6 +94,10 @@ class ScreenShareMainHook { } }); + this._screenShareTracker.on('closed', () => { + this._screenShareTracker = undefined; + }); + // Prevent newly created window to take focus from main application. this._screenShareTracker.once('ready-to-show', () => { if (this._screenShareTracker && !this._screenShareTracker.isDestroyed()) {