« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Direct URLs  |  Retro Mode: ON  |  Original »
GitHub · Extracted in 1334 ms

Fix misleading code comment in Vibration API example by jafersathikbwin · Pull Request #46869 · mdn/content

Source: https://github.com/mdn/content/pull/46869

Repository navigation

Fix misleading code comment in Vibration API example - #46869


Merged
wbamberg merged 1 commit into mdn:main from jafersathikbwin:main Dec 5, 2026
Merged

Fix misleading code comment in Vibration API example #46869 wbamberg merged 1 commit into mdn:main from jafersathikbwin:main

Conversation

jafersathikbwin commented Dec 5, 2026



Copy link Copy Markdown
Contributor

Description

Updated the code comment above startVibrate() in the "Continued vibrations" example.

Motivation

The comment says vibration starts at a passed in "level", but the parameter is a duration in milliseconds. navigator.vibrate() has no intensity level, so the old wording could confuse readers.

Additional details

Comment-only change; no code behavior is affected.

Related issues and pull requests

None.

Fix misleading code comment in Vibration API example 06fb78d jafersathikbwin requested a review from a team as a code owner December 5, 2026 19:56 jafersathikbwin requested review from wbamberg and removed request for a team December 5, 2026 19:56 github-actions
Bot
added Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed labels Dec 5, 2026 wbamberg approved these changes Dec 5, 2026
View reviewed changes

wbamberg left a comment



Copy link Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍 thank you!

wbamberg merged commit 1529219 into mdn : main Dec 5, 2026 9 checks passed Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed

2 participants