mirror of
https://github.com/kmoskwiak/videojs-resolution-switcher.git
synced 2025-10-03 17:59:42 +02:00
Revert "use className property instead of classList object"
This reverts commit 95ebf02893
.
This commit is contained in:
parent
95ebf02893
commit
9c7b440223
1 changed files with 3 additions and 3 deletions
|
@ -101,7 +101,7 @@
|
|||
this.el().appendChild(label);
|
||||
}else{
|
||||
var staticLabel = document.createElement('span');
|
||||
staticLabel.className = 'vjs-resolution-button-staticlabel';
|
||||
staticLabel.classList.add('vjs-resolution-button-staticlabel');
|
||||
this.el().appendChild(staticLabel);
|
||||
}
|
||||
},
|
||||
|
@ -142,7 +142,7 @@
|
|||
player = this,
|
||||
label = document.createElement('span');
|
||||
|
||||
label.className = 'vjs-resolution-button-label';
|
||||
label.classList.add('vjs-resolution-button-label');
|
||||
|
||||
/**
|
||||
* Updates player sources or returns current source URL
|
||||
|
@ -162,7 +162,7 @@
|
|||
var groupedSrc = bucketSources(src);
|
||||
var choosen = chooseSrc(groupedSrc, src);
|
||||
var menuButton = new ResolutionMenuButton(player, { sources: groupedSrc, initialySelectedLabel: choosen.label , initialySelectedRes: choosen.res }, settings, label);
|
||||
menuButton.el().className += ' vjs-resolution-button';
|
||||
menuButton.el().classList.add('vjs-resolution-button');
|
||||
player.controlBar.resolutionSwitcher = player.controlBar.addChild(menuButton);
|
||||
return setSourcesSanitized(player, choosen.sources, choosen.label);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue