4 ms·
That’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 s
by LoSboccacc 8y ago
That’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...