diff options
Diffstat (limited to 'youtube/static')
-rw-r--r-- | youtube/static/js/plyr-start.js | 4 |
1 files changed, 3 insertions, 1 deletions
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; }); |