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

Feat: Add vibrate field to NotificationOptions in web-sys crate #4041

Merged
merged 2 commits into from
Aug 3, 2024

Conversation

hcandelaria
Copy link
Contributor

  • Updated Notification.webidl to include the vibrate field in the NotificationOptions dictionary.
  • Added getter get_vibrate to retrieve the vibrate field of NotificationOptions.
  • Added setter set_vibrate to change the vibrate field of NotificationOptions.

hcandelaria and others added 2 commits August 2, 2024 19:57
- Updated `Notification.webidl` to include the `vibrate` field in the `NotificationOptions` dictionary.
- Added getter `get_vibrate` to retrieve the `vibrate` field of `NotificationOptions`.
- Added setter `set_vibrate` to change the `vibrate` field of `NotificationOptions`.
Copy link
Collaborator

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

I added a changelog entry and corrected the type to follow the specification.
Unfortunately we don't handle unions very well right now, so that's the best we have until the next breaking change of web-sys.

@daxpedda daxpedda merged commit 2efd450 into rustwasm:main Aug 3, 2024
27 checks passed
@hcandelaria
Copy link
Contributor Author

Sounds good. Thanks for your help.

@hcandelaria hcandelaria deleted the NotificationOptions branch August 16, 2024 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants