Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/external_app/external_messaging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class ExternalMessaging {
}
if (window.externalApp) {
window.externalApp.externalBus(JSON.stringify(msg));
} else {
} else if (window.webkit) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't fix it. The problem is I that externalBus is not defined because he uses an older iOS app. We should only set up the external bus if we detect that either externalApp.externalBus or webkit!.messageHandlers.externalBus exists inside ExternalAuth.

window.webkit!.messageHandlers.externalBus.postMessage(msg);
}
}
Expand Down