You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
459 B
11 lines
459 B
7 years ago
|
// Notifications
|
||
|
// By Theodoor van Donge
|
||
|
|
||
|
// window.webkitNotifications is only used by Chrome
|
||
|
// http://www.html5rocks.com/en/tutorials/notifications/quick/
|
||
|
|
||
|
// window.Notification only exist in the draft specs
|
||
|
// http://dev.w3.org/2006/webapi/WebNotifications/publish/Notifications.html#idl-if-Notification
|
||
|
|
||
|
Modernizr.addTest('notification', 'Notification' in window && 'permission' in window.Notification && 'requestPermission' in window.Notification);
|