mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Minor fixes
This commit is contained in:
parent
84182ffe77
commit
daaaea1f16
@ -6,7 +6,6 @@ import { UserAgent, UserAgentProfile } from "@utils/user-agent";
|
|||||||
import { getPref, Preferences, PrefKey, setPref, toPrefElement } from "@utils/preferences";
|
import { getPref, Preferences, PrefKey, setPref, toPrefElement } from "@utils/preferences";
|
||||||
import { t, refreshCurrentLocale } from "@utils/translation";
|
import { t, refreshCurrentLocale } from "@utils/translation";
|
||||||
import { PatcherCache } from "../patcher";
|
import { PatcherCache } from "../patcher";
|
||||||
import { profile } from "console";
|
|
||||||
|
|
||||||
const SETTINGS_UI = {
|
const SETTINGS_UI = {
|
||||||
'Better xCloud': {
|
'Better xCloud': {
|
||||||
@ -254,7 +253,7 @@ export function setupSettingsUi() {
|
|||||||
$control = CE<HTMLSelectElement>('select', {id: `bx_setting_${settingId}`});
|
$control = CE<HTMLSelectElement>('select', {id: `bx_setting_${settingId}`});
|
||||||
$control.name = $control.id;
|
$control.name = $control.id;
|
||||||
|
|
||||||
$control.addEventListener('change', e => {
|
$control.addEventListener('change', (e: Event) => {
|
||||||
setPref(settingId, (e.target as HTMLSelectElement).value);
|
setPref(settingId, (e.target as HTMLSelectElement).value);
|
||||||
onChange(e);
|
onChange(e);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user