diff options
author | Jacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home> | 2016-03-04 15:57:32 -0500 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-03-18 10:26:48 +0000 |
commit | e33e0de24da8994c32ce093883003d31cef7c56e (patch) | |
tree | 2e0f488e3ce6c0c8706c0c157dd2fe11ef9fddeb | |
parent | 00deaaafb1149d78a019d96b02ca2e6279d39f25 (diff) | |
download | gitlab-ce-e33e0de24da8994c32ce093883003d31cef7c56e.tar.gz |
Checks if Notification API exists before requesting permission.
-rw-r--r-- | app/assets/javascripts/lib/notify.js.coffee | 3 |
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 |