`Notification not defined` fix #192 (may fix #224)

This commit is contained in:
Paco 2021-01-13 15:46:36 +01:00
parent a2b93553ce
commit 7509be7cba
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
function notify(title, body) {
if (!Notification) {
if (!'Notification' in window) {
console.log("This browser does not support desktop notification, cannot send following message: "+title+" "+body);
return;
}
@ -16,7 +16,7 @@ function notify(title, body) {
}
document.addEventListener('DOMContentLoaded', function () {
if (!Notification) {
if (!'Notification' in window) {
return;
}