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) {
var notification;
notification = new Notification(message, opts);
const notification = new Notification(message, opts);
setTimeout(
() =>
// Hide the notification after X amount of seconds
......@@ -21,8 +20,7 @@ function notifyPermissions() {
}
function notifyMe(message, body, icon, onclick) {
var opts;
opts = {
const opts = {
body,
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