jpillora / notifyjs

Notify.js - A simple, versatile notification library
https://notifyjs.jpillora.com/
MIT License
1.91k stars 741 forks source link

how to prevent more than one notification at a time? #64

Open ap1011 opened 8 years ago

ap1011 commented 8 years ago

is there a way to prevent stacked notifications so in the event more than one notification was triggered, the new notification replaces the old?

jpillora commented 8 years ago

You could trigger a hide on all notifications before showing the next one $('.notifyjs-container').trigger('notify-hide');