Bug fixes

This commit is contained in:
redphx 2024-07-07 14:59:12 +07:00
parent d82a38c0f1
commit 56a3f1d8c8
3 changed files with 3 additions and 3 deletions

View File

@ -189,7 +189,7 @@ if (!!window.BX_REMOTE_PLAY_CONFIG) {
},
enableXcloudLogger(str: string) {
const text = 'this.telemetryProvider=e}log(e,t,i){';
const text = 'this.telemetryProvider=e}log(e,t,r){';
if (!str.includes(text)) {
return false;
}

View File

@ -42,7 +42,7 @@ export function deepClone(obj: any): any {
}
if (!obj) {
return obj;
return {};
}
return JSON.parse(JSON.stringify(obj));

View File

@ -446,7 +446,7 @@ class XcloudInterceptor {
let overrideMkb: boolean | null = null;
if (getPref(PrefKey.NATIVE_MKB_ENABLED) === 'on' || BX_FLAGS.ForceNativeMkbTitles?.includes(STATES.currentStream.titleInfo!.details.productId)) {
if (getPref(PrefKey.NATIVE_MKB_ENABLED) === 'on' || (STATES.currentStream.titleInfo && BX_FLAGS.ForceNativeMkbTitles?.includes(STATES.currentStream.titleInfo.details.productId))) {
overrideMkb = true;
}