summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOliver <oliver@mohlin.dev>2024-12-10 14:32:52 +0100
committerMarkus Pettersson <markus.pettersson@mullvad.net>2024-12-17 12:15:39 +0100
commit4586017a0c0b788dd35c6ece4e46d42e15a9332b (patch)
tree91596fd4b9c55b4e5d939c2ddac769c60289a782
parent07c93b1d518e7e072a54889d3ca74d507dc742ee (diff)
downloadmullvadvpn-4586017a0c0b788dd35c6ece4e46d42e15a9332b.tar.xz
mullvadvpn-4586017a0c0b788dd35c6ece4e46d42e15a9332b.zip
Hide inconsistent version notification in development
-rw-r--r--desktop/packages/mullvad-vpn/src/shared/notifications/inconsistent-version.ts5
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 {