Use globalThis to declare global variables

This commit is contained in:
redphx
2024-04-23 18:23:41 +07:00
parent c0efaf3e34
commit 9a76731c69
4 changed files with 13 additions and 17 deletions

View File

@@ -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) {