notification.js 459 B

12345678910
  1. // Notifications
  2. // By Theodoor van Donge
  3. // window.webkitNotifications is only used by Chrome
  4. // http://www.html5rocks.com/en/tutorials/notifications/quick/
  5. // window.Notification only exist in the draft specs
  6. // http://dev.w3.org/2006/webapi/WebNotifications/publish/Notifications.html#idl-if-Notification
  7. Modernizr.addTest('notification', 'Notification' in window && 'permission' in window.Notification && 'requestPermission' in window.Notification);