Merge branch 'master' into 'development'
`Notification not defined` fix (should fix #192, may fix #224) See merge request fiat-tux/hat-softwares/lufi!78
This commit is contained in:
commit
62ad39154d
|
@ -1,5 +1,5 @@
|
||||||
function notify(title, body) {
|
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);
|
console.log("This browser does not support desktop notification, cannot send following message: "+title+" "+body);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ function notify(title, body) {
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
if (!Notification) {
|
if (!'Notification' in window) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue