remove unnecessary variable

This commit is contained in:
Booteille 2024-11-14 19:20:23 +01:00
parent 12d02290d7
commit 043ffb42ca
No known key found for this signature in database
GPG Key ID: 0AB6C6CA01272646
1 changed files with 4 additions and 5 deletions

View File

@ -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;
}