AnApprentice
AnApprentice

Reputation: 111080

Web Notifications API - Is there a way to close all displayed notifications

With Web Notifications API, the app can end up displaying 5+ notifications. The notifications do not automatically close. Is there a method available that will close all open desktop notifications?

Thanks

Upvotes: 0

Views: 433

Answers (1)

Stefan
Stefan

Reputation: 3051

you can call the .cancel() handler on your notification variable

Upvotes: 2

Related Questions