diff options
author | James Taylor <user234683@users.noreply.github.com> | 2021-08-29 21:14:50 -0700 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-08-29 23:24:32 -0500 |
commit | a7527986c821d9766bdc3907ed6ffeaf7e62c18d (patch) | |
tree | 5f85364b68a12ccb4946bd522ebd84714a1d0f7b /youtube/static | |
parent | 00c812ff4a3f5c7685a47885916b4bcb3a2c01d2 (diff) | |
download | yt-local-a7527986c821d9766bdc3907ed6ffeaf7e62c18d.tar.lz yt-local-a7527986c821d9766bdc3907ed6ffeaf7e62c18d.tar.xz yt-local-a7527986c821d9766bdc3907ed6ffeaf7e62c18d.zip |
Fix embed page broken due to changes to jinja variables
Signed-off-by: Jesús <heckyel@hyperbola.info>
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; }); |