mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
fix(precise-volume): replace constructor check for volume slider (#3362)
This commit is contained in:
@ -155,9 +155,9 @@ export const onPlayerApiReady = async (
|
||||
function setupSliderObserver() {
|
||||
const sliderObserver = new MutationObserver((mutations) => {
|
||||
for (const mutation of mutations) {
|
||||
if (mutation.target instanceof HTMLInputElement) {
|
||||
if (mutation.target.nodeName === 'TP-YT-PAPER-SLIDER') {
|
||||
// This checks that volume-slider was manually set
|
||||
const target = mutation.target;
|
||||
const target = mutation.target as HTMLInputElement;
|
||||
const targetValueNumeric = Number(target.value);
|
||||
if (
|
||||
mutation.oldValue !== target.value &&
|
||||
|
||||
Reference in New Issue
Block a user