Commit 7ae80df4 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'notify' into 'master'

Remote var from notify.js

Closes #36283

See merge request gitlab-org/gitlab!20094
parents 80f733d2 1935dee3
/* eslint-disable no-var, consistent-return, no-return-assign */ /* eslint-disable consistent-return, no-return-assign */
function notificationGranted(message, opts, onclick) { function notificationGranted(message, opts, onclick) {
var notification; const notification = new Notification(message, opts);
notification = new Notification(message, opts);
setTimeout( setTimeout(
() => () =>
// Hide the notification after X amount of seconds // Hide the notification after X amount of seconds
...@@ -21,8 +20,7 @@ function notifyPermissions() { ...@@ -21,8 +20,7 @@ function notifyPermissions() {
} }
function notifyMe(message, body, icon, onclick) { function notifyMe(message, body, icon, onclick) {
var opts; const opts = {
opts = {
body, body,
icon, icon,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment