-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated notifications with Modernizr.prefixed(Nofitications, window)
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |