mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 10:19:08 +00:00
19 lines
439 B
TypeScript
19 lines
439 B
TypeScript
// Copyright 2025 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import * as RemoteConfig from '../RemoteConfig.dom.js';
|
|
import { isNightly } from './version.std.js';
|
|
|
|
export function isSettingsInternalEnabled(): boolean {
|
|
if (RemoteConfig.isEnabled('desktop.internalUser')) {
|
|
return true;
|
|
}
|
|
|
|
const version = window.getVersion?.();
|
|
if (version != null) {
|
|
return isNightly(version);
|
|
}
|
|
|
|
return false;
|
|
}
|