diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2023-04-13 13:42:35 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2023-04-17 14:14:07 +0200 |
| commit | 18c46137da8198aeb8d208e0e5d011697b104bab (patch) | |
| tree | bf9d568da2eee911ce8dc5d3c016ae3f84a7b7db /gui/src | |
| parent | 124e7774c82d8b6ec80be2af5d973b350698bb9c (diff) | |
| download | mullvadvpn-18c46137da8198aeb8d208e0e5d011697b104bab.tar.xz mullvadvpn-18c46137da8198aeb8d208e0e5d011697b104bab.zip | |
Don't read app name when running tests
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/main/notification-controller.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/src/main/notification-controller.ts b/gui/src/main/notification-controller.ts index f5b7b631ad..c83fc11eff 100644 --- a/gui/src/main/notification-controller.ts +++ b/gui/src/main/notification-controller.ts @@ -51,7 +51,8 @@ export default class NotificationController { private dismissedNotifications: Set<SystemNotification> = new Set(); private throttledNotifications: Map<SystemNotification, Scheduler> = new Map(); - private notificationTitle = process.platform === 'linux' ? app.name : ''; + private notificationTitle = + process.platform === 'linux' && process.env.NODE_ENV !== 'test' ? app.name : ''; private notificationIcon?: NativeImage; constructor(private notificationControllerDelegate: NotificationControllerDelegate) { |
