diff --git a/packages/apps-electron/src/electron/index.ts b/packages/apps-electron/src/electron/index.ts index 97cafb2a28..20d2983b77 100644 --- a/packages/apps-electron/src/electron/index.ts +++ b/packages/apps-electron/src/electron/index.ts @@ -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); diff --git a/packages/apps-electron/src/featureToggles.ts b/packages/apps-electron/src/featureToggles.ts deleted file mode 100644 index 4385e07e50..0000000000 --- a/packages/apps-electron/src/featureToggles.ts +++ /dev/null @@ -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) -};