Commit 1935dee3 authored by Utkarsh Gupta's avatar Utkarsh Gupta

Remote var from notify.js

parent 9488d696
/* 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