Fix notifications

This commit is contained in:
ClaraCrazy 2025-12-14 14:18:37 +01:00
parent 2902d0fcc5
commit 9538e7be7a
No known key found for this signature in database
GPG key ID: EBBC896ACB497011

View file

@ -11,8 +11,8 @@ function showNewMailsNotification(address, reloadPage) {
renotify: true renotify: true
}) })
notification.addEventListener('click', event => { notification.addEventListener('click', event => {
// TODO: does not work after reloading the page, see #1
event.preventDefault() event.preventDefault()
window.focus()
}) })
if (reloadPage) { if (reloadPage) {