Skip to content
Permalink
Browse files

fix(app): disable app downgrade feature

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 4da6eea6188e2467cba956ba8bb76cf02d0bc6c0
Showing with 1 addition and 1 deletion.
  1. +1 −1 electron/updater.js
@@ -59,8 +59,8 @@ class ZapUpdater {
configure(settings) {
Object.assign(this.settings, settings)

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

/**

0 comments on commit 4da6eea

Please sign in to comment.
You can’t perform that action at this time.