alexgibson / notify.js

A handy wrapper for the Web Notifications API
https://alexgibson.github.io/notify.js/
Other
1.33k stars 147 forks source link

Use PageVisibility HTML5 API #62

Open hardware opened 8 years ago

hardware commented 8 years ago

I think it might be a good idea to use PageVisibility API to display notifications only when page is not visible for example, like https://github.com/ttsvetko/HTML5-Desktop-Notifications

Notify.config({
    pageVisibility: true|false
})
leovarmak commented 8 years ago

This would be actually great. But not sure if it would be suitable for every matchcase