diff options
| author | Oliver <oliver@mohlin.dev> | 2024-12-10 14:32:52 +0100 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2024-12-17 12:15:39 +0100 |
| commit | 4586017a0c0b788dd35c6ece4e46d42e15a9332b (patch) | |
| tree | 91596fd4b9c55b4e5d939c2ddac769c60289a782 | |
| parent | 07c93b1d518e7e072a54889d3ca74d507dc742ee (diff) | |
| download | mullvadvpn-4586017a0c0b788dd35c6ece4e46d42e15a9332b.tar.xz mullvadvpn-4586017a0c0b788dd35c6ece4e46d42e15a9332b.zip | |
Hide inconsistent version notification in development
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/shared/notifications/inconsistent-version.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/desktop/packages/mullvad-vpn/src/shared/notifications/inconsistent-version.ts b/desktop/packages/mullvad-vpn/src/shared/notifications/inconsistent-version.ts index e4f7a8ddc1..4cfed9f777 100644 --- a/desktop/packages/mullvad-vpn/src/shared/notifications/inconsistent-version.ts +++ b/desktop/packages/mullvad-vpn/src/shared/notifications/inconsistent-version.ts @@ -17,7 +17,10 @@ export class InconsistentVersionNotificationProvider { public constructor(private context: InconsistentVersionNotificationContext) {} - public mayDisplay = () => !this.context.consistent; + public mayDisplay = () => + !this.context.consistent && + process.env.NODE_ENV !== undefined && + process.env.NODE_ENV !== 'development'; public getSystemNotification(): SystemNotification { return { |
