mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-14 11:37:19 +02:00
25 lines
715 B
TypeScript
25 lines
715 B
TypeScript
import { PrefKey } from "@/enums/pref-keys";
|
|
import { BX_FLAGS } from "./bx-flags";
|
|
import { getPref } from "./settings-storages/global-settings-storage";
|
|
|
|
export let FeatureGates: {[key: string]: boolean} = {
|
|
'PwaPrompt': false,
|
|
'EnableWifiWarnings': false,
|
|
'EnableUpdateRequiredPage': false,
|
|
'ShowForcedUpdateScreen': false,
|
|
};
|
|
|
|
// Disable context menu in Home page
|
|
if (getPref(PrefKey.UI_HOME_CONTEXT_MENU_DISABLED)) {
|
|
FeatureGates['EnableHomeContextMenu'] = false;
|
|
}
|
|
|
|
// Disable chat feature
|
|
if (getPref(PrefKey.BLOCK_SOCIAL_FEATURES)) {
|
|
FeatureGates['EnableGuideChatTab'] = false;
|
|
}
|
|
|
|
if (BX_FLAGS.FeatureGates) {
|
|
FeatureGates = Object.assign(BX_FLAGS.FeatureGates, FeatureGates);
|
|
}
|