Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: prepare create a notification for Declarative Web Push #217

Merged
merged 7 commits into from
Aug 23, 2024

Conversation

annevk
Copy link
Member

@annevk annevk commented Aug 23, 2024

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
    around to reduce variable errors and make variables easier to track in user agents with JavaScript enabled.

Preview | Diff

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.
@annevk annevk merged commit 9a8242e into main Aug 23, 2024
2 checks passed
@annevk annevk deleted the annevk/create-a-notification branch August 23, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant