Skip to content

Commit

Permalink
Added a notification detection test
Browse files Browse the repository at this point in the history
  • Loading branch information
thvd committed Dec 16, 2011
1 parent 88f0f74 commit 3feb219
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions feature-detects/notification.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Notifications
// By Theodoor van Donge

// webkitNotification is only used by Chrome
// http://www.html5rocks.com/en/tutorials/notifications/quick/
// 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);

0 comments on commit 3feb219

Please sign in to comment.