mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 21:28:27 +02:00
Use globalThis to declare global variables
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import { getPref, Preferences, PrefKey } from "../modules/preferences";
|
||||
|
||||
|
||||
declare var States: BxStates;
|
||||
|
||||
export function getPreferredServerRegion(shortName = false) {
|
||||
let preferredRegion = getPref(PrefKey.SERVER_REGION);
|
||||
if (preferredRegion in States.serverRegions) {
|
||||
|
Reference in New Issue
Block a user