diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2024-01-31 10:44:33 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2024-01-31 11:42:56 +0100 |
| commit | 24c73b5d6340c8cc1dc5283ac660db24557b4211 (patch) | |
| tree | 66c59b7fa72a67dabad4720b4ca4c4d78b2d2e15 /gui/src | |
| parent | b9c6c19891eba713ccd5ed3eec3158437c0be1a3 (diff) | |
| download | mullvadvpn-24c73b5d6340c8cc1dc5283ac660db24557b4211.tar.xz mullvadvpn-24c73b5d6340c8cc1dc5283ac660db24557b4211.zip | |
Replace electron-mocha with mocha
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 c83fc11eff..8751ecb6ae 100644 --- a/gui/src/main/notification-controller.ts +++ b/gui/src/main/notification-controller.ts @@ -67,7 +67,8 @@ export default class NotificationController { if (usePngIcon) { const basePath = path.resolve(path.join(__dirname, '../../assets/images')); - this.notificationIcon = nativeImage.createFromPath( + // `nativeImage` is undefined when running tests + this.notificationIcon = nativeImage?.createFromPath( path.join(basePath, 'icon-notification.png'), ); } |
