diff options
author | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-09-21 12:25:47 +0200 |
---|---|---|
committer | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-09-21 12:25:47 +0200 |
commit | 7cc7910df63d19e7ebc67bb1156437f0559712d7 (patch) | |
tree | 66f972354559fe05b7a97efccd08fc363c91cf4d /source/bower_components/modernizr/feature-detects/notification.js | |
parent | 450a01136a510adc4c96ff12e05e00a2ce550c8f (diff) |
add foundation via bower
Diffstat (limited to 'source/bower_components/modernizr/feature-detects/notification.js')
-rw-r--r-- | source/bower_components/modernizr/feature-detects/notification.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/bower_components/modernizr/feature-detects/notification.js b/source/bower_components/modernizr/feature-detects/notification.js new file mode 100644 index 0000000..92d1eef --- /dev/null +++ b/source/bower_components/modernizr/feature-detects/notification.js @@ -0,0 +1,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); |