sciactive / pnotify

Beautiful JavaScript notifications with Web Notifications support.
https://sciactive.com/pnotify/
Apache License 2.0
3.65k stars 513 forks source link

Removing notices from history. #253

Closed RildoInformatica closed 6 years ago

RildoInformatica commented 8 years ago

I can´t seem to find a way to remove pnotify notices from its history. Is there?

I´ve tried PNotify.removeAll() but this only removes the notices from the screen. But since I am using pnotify history module, I need a way to remove all notices from history.

Thanks to all in advance!

hperrin commented 6 years ago

The only way to do this would be to manually remove them from the PNotify.notices array. It should be something like this:

PNotify.notices.splice(PNotify.notices.indexOf(notice), 1);