Nickersoft / push.js

The world's most versatile desktop notifications framework :earth_americas:
https://pushjs.org
MIT License
8.77k stars 548 forks source link

Close specific notifications before end of timeout #270

Closed leusch closed 3 years ago

leusch commented 3 years ago

I have a site that pushes multiple notifications. When the user clicks on one of them, the browser window appears and the notification is disappearing - OK

Is it possible to close some of the other notifications? Is there a way to say something like:

var notification = Push.create(...);
//some code
notification.close()