fix(precise-volume): replace constructor check for volume slider #3362
No reviewers
Labels
No labels
awaiting-reply
breaking changes
bug
cannot-reproduce
dependencies
documentation
duplicate
electron-issue
enhancement
fix-available
good first issue
help wanted
invalid
javascript
need more information
need rebase
official-youtube-music-issue
plugin request
question
release
security
stale
Status: blocked
typo
wontfix
ytmd-issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: YTMD/youtube-music#3362
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/precise-volume-slider-observer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #3351
#volume-slider
is not a native input element (anymore?). This now checks if it istp-yt-paper-slider
, which also acts like an input element.Pull Request Overview
This PR fixes issue #3351 by updating the check for the volume slider element to support the new tp-yt-paper-slider component.
Comments suppressed due to low confidence (1)
src/plugins/precise-volume/renderer.ts:158
@ -160,3 +160,3 @@
const target = mutation.target;
const target = mutation.target as HTMLInputElement;
const targetValueNumeric = Number(target.value);
if (
Casting mutation.target to HTMLInputElement may be unsafe if tp-yt-paper-slider does not inherit from HTMLInputElement; consider casting to a more appropriate type or interface that represents the tp-yt-paper-slider component.
Thanks!