fix: handle Notification requireInteraction option (#36477)
This commit is contained in:
parent
f527b8aa2a
commit
665cf03f74
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue