fix videojs-2
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Roy Olav Purser 2023-07-07 21:03:08 +02:00
parent 7c3cae3b39
commit efef31c233
Signed by: roypur
GPG Key ID: 90142918D5E59AD3

View File

@ -28,7 +28,7 @@
if(canPlayType) { if(canPlayType) {
const Button = videojs.getComponent("Button"); const Button = videojs.getComponent("Button");
class DownloadButton extends videojs.getComponent("Component") { class DownloadButton extends videojs.getComponent("Component") {
createEl: () => { createEl() {
const elem = document.createElement("a"); const elem = document.createElement("a");
elem.href = info.download; elem.href = info.download;
elem.classList.add("vjs-control"); elem.classList.add("vjs-control");