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