diff --git a/src/app/window-handler.ts b/src/app/window-handler.ts index 6b8b30bb..c6eb84d9 100644 --- a/src/app/window-handler.ts +++ b/src/app/window-handler.ts @@ -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;