Skip to content

Commit

Permalink
Prevent persisiting notifications in windows store
Browse files Browse the repository at this point in the history
  • Loading branch information
sbenmoussati committed Jun 9, 2023
1 parent 59e7b1f commit 8503376
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/screen-snippet-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import * as path from 'path';

import { ChildProcess, ExecException, execFile } from 'child_process';
import * as util from 'util';
import { IScreenSnippet } from '../common/api-interface';
import { apiName, IScreenSnippet } from '../common/api-interface';
import {
isDevEnv,
isElectronQA,
Expand Down Expand Up @@ -482,7 +482,9 @@ class ScreenSnippet {
allWindows.forEach((window) => {
if (
(window as ICustomBrowserWindow).winName !== currentWindowName &&
(window as ICustomBrowserWindow).winName !== 'main'
(window as ICustomBrowserWindow).winName !== 'main' &&
(window as ICustomBrowserWindow).winName !==
apiName.notificationWindowName
) {
windowsArr.push({
id: (window as ICustomBrowserWindow).winName,
Expand Down

0 comments on commit 8503376

Please sign in to comment.