the user may have closed the screen share indicator so we can not be depending on that

This commit is contained in:
Johan Kwarnmark
2020-05-11 15:33:33 +02:00
parent 8ac95a95c1
commit b2b95de669
+7 -8
View File
@@ -507,14 +507,13 @@ export class WindowHandler {
if (browserWindow && windowExists(browserWindow)) {
browserWindow.destroy();
if (isWindowsOS || isMac) {
this.execCmd(this.screenShareIndicatorFrameUtil, []);
} else {
if (this.screenSharingFrameWindow && windowExists(this.screenSharingFrameWindow)) {
this.screenSharingFrameWindow.close();
}
}
}
}
if (isWindowsOS || isMac) {
this.execCmd(this.screenShareIndicatorFrameUtil, []);
} else {
if (this.screenSharingFrameWindow && windowExists(this.screenSharingFrameWindow)) {
this.screenSharingFrameWindow.close();
}
}
break;