Add back the ability to create shortcut for Remote Play

This commit is contained in:
redphx
2025-06-21 15:34:50 +07:00
parent f7f01fd27e
commit e1d053a634
8 changed files with 95 additions and 33 deletions

View File

@@ -152,7 +152,10 @@ export class BxEventBus<TEvents extends Record<string, any>> {
try {
if (event in this.appJsInterfaces) {
const method = this.appJsInterfaces[event];
AppInterface[method] && AppInterface[method]();
if (method && method in AppInterface) {
// @ts-ignore
AppInterface[method]();
}
} else {
AppInterface.onEventBus(this.group + '.' + (event as string));
}

View File

@@ -153,7 +153,7 @@ export class TrueAchievements {
xboxTitleId = this.getStreamXboxTitleId();
}
if (AppInterface && AppInterface.openTrueAchievementsLink) {
if (AppInterface?.openTrueAchievementsLink) {
AppInterface.openTrueAchievementsLink(override, xboxTitleId?.toString(), id?.toString());
return;
}