Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(app): disable app downgrade feature
Browse files Browse the repository at this point in the history
Ensure that we set electron-updater `allowDowngrade=false` after
setting the update channel, since `autoUpdater.channel` is a setter
which explicity sets `allowDowngrade=true`.
  • Loading branch information
mrfelton committed Aug 12, 2019
1 parent f1bb93a commit 4da6eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electron/updater.js
Expand Up @@ -59,8 +59,8 @@ class ZapUpdater {
configure(settings) {
Object.assign(this.settings, settings)

autoUpdater.allowDowngrade = false
autoUpdater.channel = this.settings.channel
autoUpdater.allowDowngrade = false
}

/**
Expand Down

0 comments on commit 4da6eea

Please sign in to comment.