Skip to content

Commit

Permalink
Updated notifications with Modernizr.prefixed(Nofitications, window)
Browse files Browse the repository at this point in the history
  • Loading branch information
thvd committed Jan 17, 2012
1 parent 3feb219 commit a7706ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions feature-detects/notification.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Notifications
// By Theodoor van Donge

// webkitNotification is only used by Chrome
// window.webkitNotifications is only used by Chrome
// http://www.html5rocks.com/en/tutorials/notifications/quick/
// Notification only exist in the draft specs
// window.Notification only exist in the draft specs
// http://dev.w3.org/2006/webapi/WebNotifications/publish/Notifications.html#idl-if-Notification

Modernizr.addTest('notification', !!window.webkitNotifications || !!window.Notification);
Modernizr.addTest('notification', !!Modernizr.prefixed('Notifications', window) || !!window.Notification);

0 comments on commit a7706ff

Please sign in to comment.