Remove auto updater feature toggle. (#3138)
This commit is contained in:
parent
21a3be7ad3
commit
244d07e5c5
@ -3,7 +3,6 @@
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { app } from 'electron';
|
||||
import { features } from '../featureToggles';
|
||||
import { registerAccountStoreHandlers } from '../main/account-store';
|
||||
import { setupAutoUpdater } from './autoUpdater';
|
||||
import { createWindow } from './window';
|
||||
@ -13,10 +12,7 @@ const ENV = process.env.NODE_ENV || 'production';
|
||||
const onReady = async () => {
|
||||
registerAccountStoreHandlers();
|
||||
await createWindow(ENV);
|
||||
|
||||
if (features.autoUpdater) {
|
||||
await setupAutoUpdater();
|
||||
}
|
||||
await setupAutoUpdater();
|
||||
};
|
||||
|
||||
app.whenReady().then(onReady).catch(console.error);
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
// Copyright 2017-2020 @polkadot/apps authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
function getBoolEnv (env: string | undefined, fallback: boolean) {
|
||||
return env ? (env) !== 'false' : fallback;
|
||||
}
|
||||
|
||||
export const features = {
|
||||
autoUpdater: getBoolEnv(process.env.POLKADOT_APPS_FEATURE_AUTOUPDATER, false)
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user