From a7527986c821d9766bdc3907ed6ffeaf7e62c18d Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sun, 29 Aug 2021 21:14:50 -0700 Subject: Fix embed page broken due to changes to jinja variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jesús --- youtube/static/js/plyr-start.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'youtube/static/js') diff --git a/youtube/static/js/plyr-start.js b/youtube/static/js/plyr-start.js index 49b9f14..dae001a 100644 --- a/youtube/static/js/plyr-start.js +++ b/youtube/static/js/plyr-start.js @@ -120,5 +120,7 @@ const player = new Plyr(document.getElementById('js-video-player'), { // Hide the external quality selector window.addEventListener('DOMContentLoaded', function(){ - document.getElementById('quality-select').hidden = true; + var qs = document.getElementById('quality-select'); + if (qs) + qs.hidden = true; }); -- cgit v1.2.3