mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
Merge pull request #739 from williamboman/fix/dont-dismiss-notifications
client: don't dismiss native web notifications programmatically after 5s
This commit is contained in:
commit
c954d9c9a3
1 changed files with 2 additions and 5 deletions
|
@ -1041,14 +1041,11 @@ $(function() {
|
|||
icon: "img/logo-64.png",
|
||||
tag: target
|
||||
});
|
||||
notify.onclick = function() {
|
||||
notify.addEventListener("click", function() {
|
||||
window.focus();
|
||||
button.click();
|
||||
this.close();
|
||||
};
|
||||
window.setTimeout(function() {
|
||||
notify.close();
|
||||
}, 5 * 1000);
|
||||
});
|
||||
} catch (exception) {
|
||||
// `new Notification(...)` is not supported and should be silenced.
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue