diff options
Diffstat (limited to 'src/electron/ipc-api/autoUpdate.ts')
-rw-r--r-- | src/electron/ipc-api/autoUpdate.ts | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/electron/ipc-api/autoUpdate.ts b/src/electron/ipc-api/autoUpdate.ts index a41c1f6f4..aed87455e 100644 --- a/src/electron/ipc-api/autoUpdate.ts +++ b/src/electron/ipc-api/autoUpdate.ts | |||
@@ -18,14 +18,6 @@ export default (params: { mainWindow: BrowserWindow; settings: any }) => { | |||
18 | autoUpdater.allowPrerelease = Boolean( | 18 | autoUpdater.allowPrerelease = Boolean( |
19 | params.settings.app.get('beta'), | 19 | params.settings.app.get('beta'), |
20 | ); | 20 | ); |
21 | autoUpdater.channel = autoUpdater.allowPrerelease ? 'beta' : 'latest'; | ||
22 | |||
23 | if (params.settings.app.get('nightly')) { | ||
24 | autoUpdater.allowPrerelease = Boolean( | ||
25 | params.settings.app.get('nightly'), | ||
26 | ); | ||
27 | autoUpdater.channel = 'alpha'; | ||
28 | } | ||
29 | 21 | ||
30 | if (args.action === 'check') { | 22 | if (args.action === 'check') { |
31 | debug('checking for update'); | 23 | debug('checking for update'); |