mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-10 07:07:46 +02:00
Add back the ability to create shortcut for Remote Play
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user