summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/lib/utils/notify.js
diff options
context:
space:
mode:
authoryguo <yguo@gitlab.com>2019-06-17 11:31:55 -0400
committeryguo <yguo@gitlab.com>2019-06-17 11:31:55 -0400
commit03d40ec845d83c9ecef6739c710137ff4183573b (patch)
treed6ed89848e227fad612c213acd9c766440599e0d /app/assets/javascripts/lib/utils/notify.js
parent74db1abb6ce6b70d775e7b3d54f59ea431de9082 (diff)
parent08ed6b1720ff4d6e2b45a97000a106071d650194 (diff)
downloadgitlab-ce-issue-62685.tar.gz
Merge from masterissue-62685
Diffstat (limited to 'app/assets/javascripts/lib/utils/notify.js')
-rw-r--r--app/assets/javascripts/lib/utils/notify.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/lib/utils/notify.js b/app/assets/javascripts/lib/utils/notify.js
index d93873e0214..e7f6255e5f1 100644
--- a/app/assets/javascripts/lib/utils/notify.js
+++ b/app/assets/javascripts/lib/utils/notify.js
@@ -12,6 +12,7 @@ function notificationGranted(message, opts, onclick) {
}
function notifyPermissions() {
+ /* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */
if ('Notification' in window) {
return Notification.requestPermission();
}
@@ -24,6 +25,7 @@ function notifyMe(message, body, icon, onclick) {
icon: icon,
};
// Let's check if the browser supports notifications
+ /* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */
if (!('Notification' in window)) {
// do nothing
} else if (Notification.permission === 'granted') {