3 ms·
isn't the "Allow website to send Notifications" prompt on 99% of mainstream websites irritating enough?
by lucaspottersky 8y ago
isn't the "Allow website to send Notifications" prompt on 99% of mainstream websites irritating enough?
- LoSboccacc 8y agoThat’s because the api is badly defined, the javascript call to ask for notification is syncronous so the browser need that annoying blocking popup insteas of something less invasive like the popup notification
- Klathmon 8y agoThe javascript call to request notification permissions is async (returning a promise in newer browsers, callback in older ones). https://developer.mozilla.org/en-US/docs/Web/API/Notification/requestPermission https://developer.mozilla.org/en-US/docs/Web/API/Notificatio...