Files
Desktop/ts/util/isSettingsInternalEnabled.dom.ts
T
2026-03-30 11:54:59 -07:00

19 lines
439 B
TypeScript

// Copyright 2025 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as RemoteConfig from '../RemoteConfig.dom.ts';
import { isNightly } from './version.std.ts';
export function isSettingsInternalEnabled(): boolean {
if (RemoteConfig.isEnabled('desktop.internalUser')) {
return true;
}
const version = window.getVersion?.();
if (version != null) {
return isNightly(version);
}
return false;
}