Download backup on link
This commit is contained in:
parent
ec36ae7f26
commit
5c350a0e3c
5 changed files with 67 additions and 2 deletions
|
@ -2,7 +2,15 @@
|
|||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import * as RemoteConfig from '../RemoteConfig';
|
||||
import { Environment, getEnvironment } from '../environment';
|
||||
import { isStaging } from './version';
|
||||
|
||||
export function isBackupEnabled(): boolean {
|
||||
if (getEnvironment() === Environment.Staging) {
|
||||
return true;
|
||||
}
|
||||
if (isStaging(window.getVersion())) {
|
||||
return true;
|
||||
}
|
||||
return Boolean(RemoteConfig.isEnabled('desktop.backup.credentialFetch'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue