Skip to content

Commit

Permalink
backport of 2e0a658 / #1015
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkettner committed Apr 29, 2014
1 parent b1ca6dd commit 6ee02df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feature-detects/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
// window.Notification only exist in the draft specs
// http://dev.w3.org/2006/webapi/WebNotifications/publish/Notifications.html#idl-if-Notification

Modernizr.addTest('notification', !!Modernizr.prefixed('Notifications', window));
Modernizr.addTest('notification', 'Notification' in window && 'permission' in window.Notification && 'requestPermission' in window.Notification);

0 comments on commit 6ee02df

Please sign in to comment.