From 7cc7910df63d19e7ebc67bb1156437f0559712d7 Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Sun, 21 Sep 2014 12:25:47 +0200 Subject: add foundation via bower --- .../bower_components/modernizr/feature-detects/notification.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 source/bower_components/modernizr/feature-detects/notification.js (limited to 'source/bower_components/modernizr/feature-detects/notification.js') 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); -- cgit v1.2.1