Skip to content

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

Merged
daxpedda merged 2 commits intowasm-bindgen:mainfrom
hcandelaria:NotificationOptions
Aug 3, 2024
Merged

Feat: Add vibrate field to NotificationOptions in web-sys crate#4041
daxpedda merged 2 commits intowasm-bindgen:mainfrom
hcandelaria:NotificationOptions

Conversation

@hcandelaria
Copy link
Copy Markdown
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
Copy Markdown
Member

@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 wasm-bindgen:main Aug 3, 2024
@hcandelaria
Copy link
Copy Markdown
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