client: don't dismiss native web notifications programmatically after 5s
This commit is contained in:
parent
b7ff814d8b
commit
6e1cdb370b
@ -1041,14 +1041,11 @@ $(function() {
|
|||||||
icon: "img/logo-64.png",
|
icon: "img/logo-64.png",
|
||||||
tag: target
|
tag: target
|
||||||
});
|
});
|
||||||
notify.onclick = function() {
|
notify.addEventListener("click", function() {
|
||||||
window.focus();
|
window.focus();
|
||||||
button.click();
|
button.click();
|
||||||
this.close();
|
this.close();
|
||||||
};
|
});
|
||||||
window.setTimeout(function() {
|
|
||||||
notify.close();
|
|
||||||
}, 5 * 1000);
|
|
||||||
} catch (exception) {
|
} catch (exception) {
|
||||||
// `new Notification(...)` is not supported and should be silenced.
|
// `new Notification(...)` is not supported and should be silenced.
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user