remove unnecessary variable
This commit is contained in:
parent
12d02290d7
commit
043ffb42ca
|
@ -9,15 +9,14 @@ const notify = (title, body) => {
|
||||||
if (Notification.permission !== "granted") {
|
if (Notification.permission !== "granted") {
|
||||||
Notification.requestPermission();
|
Notification.requestPermission();
|
||||||
} else {
|
} else {
|
||||||
let options = {
|
new Notification(title, {
|
||||||
body: body,
|
body,
|
||||||
icon: "/img/lufi196.png",
|
icon: "/img/lufi196.png",
|
||||||
};
|
});
|
||||||
new Notification(title, options);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", function () {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
if (!"Notification" in window || typeof Notification === "undefined") {
|
if (!"Notification" in window || typeof Notification === "undefined") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue