Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Silence failures to trigger notifications when not available
Recent Chrome versions are dropping out `new Notification` in favor of `ServiceWorkerRegistration.showNotification`. This makes sure nothing bad happens until we have proper support for Service Workers. See: - https://stackoverflow.com/questions/29774836/failed-to-construct-notification-illegal-constructor - https://stackoverflow.com/questions/31512504/html5-notification-not-working-in-mobile-chrome
- Loading branch information