Skip to content

Commit

Permalink
Merge pull request #9150 from nextcloud/backport/9149/stable3.4
Browse files Browse the repository at this point in the history
[stable3.4] Close desktop notifications when clicked
  • Loading branch information
ChristophWurst authored Dec 7, 2023
2 parents 1336891 + 325de6a commit ef6af6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/service/NotificationService.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ const showNotification = async (title, body, icon) => {
})
notification.onclick = () => {
window.focus()
// Close the notification when clicked
notification.close()
}
}

Expand Down

0 comments on commit ef6af6c

Please sign in to comment.