Fix global vars

This commit is contained in:
redphx
2024-04-24 16:50:59 +07:00
parent 9446e39eb0
commit 9d0f4c380b
30 changed files with 87 additions and 69 deletions

View File

@@ -1,8 +1,9 @@
import { NATIVE_FETCH, States } from "../utils/global";
import { CE } from "../utils/html";
import { Toast } from "../utils/toast";
import { BxEvent } from "./bx-event";
import { BX_FLAGS } from "./bx-flags";
import { getPref, Preferences, PrefKey } from "./preferences";
import { getPref, PrefKey } from "./preferences";
import { t } from "./translation";
export class TouchController {
@@ -11,10 +12,12 @@ export class TouchController {
origin: 'better-xcloud',
});
/*
static readonly #EVENT_HIDE_CONTROLLER = new MessageEvent('message', {
data: '{"content":"","target":"/streaming/touchcontrols/hide","type":"Message"}',
origin: 'better-xcloud',
});
*/
static #$bar: HTMLElement;
static #$style: HTMLStyleElement;