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) { 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