summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-03-04 15:57:32 -0500
committerPhil Hughes <me@iamphill.com>2016-03-18 10:26:48 +0000
commite33e0de24da8994c32ce093883003d31cef7c56e (patch)
tree2e0f488e3ce6c0c8706c0c157dd2fe11ef9fddeb
parent00deaaafb1149d78a019d96b02ca2e6279d39f25 (diff)
downloadgitlab-ce-e33e0de24da8994c32ce093883003d31cef7c56e.tar.gz
Checks if Notification API exists before requesting permission.
-rw-r--r--app/assets/javascripts/lib/notify.js.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/lib/notify.js.coffee b/app/assets/javascripts/lib/notify.js.coffee
index 2cb4481fa00..6b9fb9deb3b 100644
--- a/app/assets/javascripts/lib/notify.js.coffee
+++ b/app/assets/javascripts/lib/notify.js.coffee
@@ -24,4 +24,5 @@
return
) window
-Notification.requestPermission() \ No newline at end of file
+if 'Notification' of window
+ Notification.requestPermission() \ No newline at end of file