summaryrefslogtreecommitdiff
path: root/source/bower_components/modernizr/feature-detects/notification.js
blob: 92d1eef4d0a47cb4556b9b5a18aeea156de6f207 (plain)
1
2
3
4
5
6
7
8
9
10
// 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);