Skip to content

Commit

Permalink
fix: handle Notification requireInteraction option (#36477)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyspiegel committed Nov 30, 2022
1 parent f527b8a commit 665cf03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shell/browser/notifications/platform_notification_service.cc
Expand Up @@ -35,6 +35,9 @@ void OnWebNotificationAllowed(base::WeakPtr<Notification> notification,
options.icon = icon;
options.silent = audio_muted ? true : data.silent;
options.has_reply = false;
if (data.require_interaction)
options.timeout_type = u"never";

notification->Show(options);
} else {
notification->Destroy();
Expand Down

0 comments on commit 665cf03

Please sign in to comment.