Skip to content

Commit

Permalink
Merge pull request #1116 from OneSignal/fix/safari-custom-link-prompting
Browse files Browse the repository at this point in the history
[Fix] Safari on macOS native prompt with custom link
  • Loading branch information
jkasten2 authored Oct 19, 2023
2 parents 4d996ff + 31540b5 commit 5754813
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/shared/managers/CustomLinkManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ export class CustomLinkManager {
}

private async handleClick(element: HTMLElement): Promise<void> {
const isPushEnabled =
await OneSignal.context.subscriptionManager.isPushNotificationsEnabled();
if (isPushEnabled) {
if (OneSignal.User.PushSubscription.optedIn) {
await OneSignal.User.PushSubscription.optOut();
await this.setTextFromPushStatus(element);
} else {
Expand Down

0 comments on commit 5754813

Please sign in to comment.