hectorr
committed
on 02 Apr 20
Add "Web notifications" for new messages in the chat. See: https://www.w3.org/TR/notifications/

"You should only request consent to dis… Show more
Add "Web notifications" for new messages in the chat. See: https://www.w3.org/TR/notifications/

   "You should only request consent to display notifications in response to a user gesture

   (e.g. clicking a button). This is not only best practice — you should not be spamming

   users with notifications they didn't agree to — but going forward browsers will explicitly

   disallow notification permission requests not triggered in response to a user gesture.

   Firefox is already doing this from version 72, for example, and Safari has done it for some time."

   https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API

Show less