diff options
| author | Cory Forsstrom <cforsstrom18@gmail.com> | 2021-09-05 17:21:36 -0700 |
|---|---|---|
| committer | Oskar Nyberg <3668602+raksooo@users.noreply.github.com> | 2021-09-06 11:22:14 +0200 |
| commit | 8eadd29201a8bea71660c8ec19e95916c3c64c39 (patch) | |
| tree | dde83b3abc70a259b3bbd87afd43482e9e300c76 /gui/src | |
| parent | d18a9763a9e358bbdccf6df5eaf77f6aef6e969e (diff) | |
| download | mullvadvpn-8eadd29201a8bea71660c8ec19e95916c3c64c39.tar.xz mullvadvpn-8eadd29201a8bea71660c8ec19e95916c3c64c39.zip | |
Rename env var
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/main/index.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index db26120562..8845422e6b 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -88,7 +88,7 @@ const GUI_VERSION = app.getVersion().replace('.0', ''); /// Mirrors the beta check regex in the daemon. Matches only well formed beta versions const IS_BETA = /^(\d{4})\.(\d+)-beta(\d+)$/; -const VERSION_CHECK_DISABLED = process.env.DISABLE_VERSION_CHECK === '1'; +const UPDATE_NOTIFICATION_DISABLED = process.env.MULLVAD_DISABLE_UPDATE_NOTIFICATION === '1'; const SANDBOX_DISABLED = app.commandLine.hasSwitch('no-sandbox'); @@ -590,7 +590,7 @@ class ApplicationMain { } // fetch the latest version info in background - if (!VERSION_CHECK_DISABLED) { + if (!UPDATE_NOTIFICATION_DISABLED) { void this.fetchLatestVersion(); } @@ -933,7 +933,7 @@ class ApplicationMain { } private setLatestVersion(latestVersionInfo: IAppVersionInfo) { - if (VERSION_CHECK_DISABLED) { + if (UPDATE_NOTIFICATION_DISABLED) { return; } |
