diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2021-06-15 16:30:46 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2021-06-17 10:45:04 +0200 |
| commit | 0b62009c7961a415bf59133633f25fff56ec98f7 (patch) | |
| tree | 32e567758a991047640a176833eaa4044f967a13 /gui/src | |
| parent | 6b7d8e65da4832c11313a02fbc500ff4bbe1a57c (diff) | |
| download | mullvadvpn-0b62009c7961a415bf59133633f25fff56ec98f7.tar.xz mullvadvpn-0b62009c7961a415bf59133633f25fff56ec98f7.zip | |
Fix suggestedIsBeta propagation
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/main/index.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index 4e9aacc85c..2b9bc74a0a 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -892,11 +892,14 @@ class ApplicationMain { const suggestedIsBeta = latestVersionInfo.suggestedUpgrade !== undefined && IS_BETA.test(latestVersionInfo.suggestedUpgrade); - this.upgradeVersion = { + + const upgradeVersion = { ...latestVersionInfo, suggestedIsBeta, }; + this.upgradeVersion = upgradeVersion; + // notify user to update the app if it became unsupported const notificationProviders = [ new UnsupportedVersionNotificationProvider({ @@ -918,10 +921,7 @@ class ApplicationMain { } if (this.windowController) { - IpcMainEventChannel.upgradeVersion.notify( - this.windowController.webContents, - latestVersionInfo, - ); + IpcMainEventChannel.upgradeVersion.notify(this.windowController.webContents, upgradeVersion); } } |
