Skip to content

refactor(video): spell the showControls option correctly - #256

Merged
nk-o merged 1 commit into
masterfrom
claude/check-and-fix-issue-ce73f9
Sep 9, 2026
Merged

nk-o merged 1 commit into
masterfrom
claude/check-and-fix-issue-ce73f9

Conversation

@nk-o

@nk-o nk-o commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

The Video block passed showContols to VideoWorker. The library never saw the option it was
meant to receive, dropped the misspelled key as unknown, and used its own default for
showControls.

Nothing a visitor sees changes. That default is true and the line passed 1, so the player
showed its controls either way. Confirmed by building both spellings against video-worker
3.1.0 under jsdom, which produce the same embed URL, and by playing the block on a local site
after the rename.

The value in fixing it is that the line now does what it says, so a future change to the
library's default cannot silently flip the block's controls off.

VideoWorker got `showContols`, dropped it as unknown, and fell back to
its own default for `showControls`. That default is `true` and the line
passed `1`, so nothing a user sees changes.
@nk-o
nk-o merged commit 6340353 into master Sep 9, 2026
7 checks passed
@nk-o
nk-o deleted the claude/check-and-fix-issue-ce73f9 branch September 9, 2026 14:15
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.

1 participant