diff --git a/frontend/script.js b/frontend/script.js index 3a0c1d3..13fa83e 100644 --- a/frontend/script.js +++ b/frontend/script.js @@ -39,10 +39,10 @@ player.src(source); let Button = videojs.getComponent("ChromecastButton"); let cbutton = {}; - let button = new Button(player, cbutton); cbutton.clickHandler = (ev) => { player.trigger("chromecastRequested"); } + let button = new Button(player, cbutton); button.addClass("fab"); button.addClass("fa-chromecast"); button.addClass("vjs-control");