diff --git a/src/index.ts b/src/index.ts index f924fab..69825e5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -44,9 +44,6 @@ if (window.location.pathname.includes('/auth/msa')) { console.log(`[Better xCloud] readyState: ${document.readyState}`); -console.log(BxEvent.CUSTOM_TOUCH_LAYOUTS_LOADED) -console.log(BX_FLAGS) - if (BX_FLAGS.SafariWorkaround && document.readyState !== 'loading') { // Stop loading window.stop(); diff --git a/src/modules/ui/ui.ts b/src/modules/ui/ui.ts index 70ffedb..019c51b 100644 --- a/src/modules/ui/ui.ts +++ b/src/modules/ui/ui.ts @@ -95,7 +95,7 @@ function setupQuickSettingsBar() { pref: PrefKey.AUDIO_VOLUME, label: t('volume'), onChange: (e: any, value: number) => { - STATES.currentStream && (STATES.currentStream.audioGainNode!.gain.value = value / 100) + STATES.currentStream.audioGainNode && (STATES.currentStream.audioGainNode.gain.value = value / 100); }, params: { disabled: !getPref(PrefKey.AUDIO_ENABLE_VOLUME_CONTROL),