Cleanup
This commit is contained in:
parent
460d689c4c
commit
eee5f439b9
|
@ -1,4 +1,4 @@
|
|||
function notify(title, body) {
|
||||
const notify = (title, body) => {
|
||||
if (!"Notification" in window || typeof Notification === "undefined") {
|
||||
console.log(
|
||||
`This browser does not support desktop notification, cannot send following message: ${title} ${body}`
|
||||
|
@ -15,7 +15,7 @@ function notify(title, body) {
|
|||
};
|
||||
new Notification(title, options);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
if (!"Notification" in window || typeof Notification === "undefined") {
|
||||
|
|
Loading…
Reference in New Issue