-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Editorial: prepare create a notification for Declarative Web Push
This makes the following changes: - Instead of making create a notification deal directly with a service worker registration, we leave that to the callers. We also make service worker registration always present on a notification as "can have" fields are confusing and buggy. - Stop requiring an environment settings object for create a notification as that won't necessarily be around for Declarative Web Push. - Sprinkle some `<div algorithm>` around to reduce variable errors and make variables easier to track in user agents with JavaScript enabled.
- Loading branch information
Showing
1 changed file
with
76 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters