From 014f09b1dd75fb7d942dc600cccdc8d9239de193 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Thu, 20 May 2021 14:38:28 +0200 Subject: [PATCH] reorder chromecast handler --- frontend/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");