From efef31c233056bf90993f9d0d6ca1a6580801817 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Fri, 7 Jul 2023 21:03:08 +0200 Subject: [PATCH] fix videojs-2 --- frontend/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/script.js b/frontend/script.js index 8e50054..60e7e1a 100644 --- a/frontend/script.js +++ b/frontend/script.js @@ -28,7 +28,7 @@ if(canPlayType) { const Button = videojs.getComponent("Button"); class DownloadButton extends videojs.getComponent("Component") { - createEl: () => { + createEl() { const elem = document.createElement("a"); elem.href = info.download; elem.classList.add("vjs-control");