3 ms·
You should really use "new Notification" rather than "createNotification" because "new Notification" will be supported by browsers other than Chrome: http://ww
by abarth 14y ago
You should really use "new Notification" rather than "createNotification" because "new Notification" will be supported by browsers other than Chrome:
http://www.w3.org/TR/notifications/#api http://www.w3.org/TR/notifications/#api
- tagawa 14y agoSimilarly, you should check browser support with window.notifications as well, rather than just window.webkitNotifications.
- abarth 14y agoBased on the discussion in the W3C, I would expect other browsers to implement "new Notification" rather than implementing the window.notifications factory object because the factory object doesn't really serve any purpose. We'd like to remove the factory object from WebKit eventually once folks have switched over to the unprefixed API.
- paulirish 14y agohttps://github.com/NielsLeenheer/html5test/pull/211 https://github.com/NielsLeenheer/html5test/pull/211 has a proper detect.