diff options
author | 2025-03-29 12:35:50 +0530 | |
---|---|---|
committer | 2025-03-29 12:35:50 +0530 | |
commit | 3fbaff704571293be83e2b56d36b761f42cce1ec (patch) | |
tree | 38ff650730359360c21f296b4ad5c47f01f20c30 /youtube/static/js/watch.js | |
parent | a4e01da27c08e43a67b2618ad1e71c1f8f86d5cd (diff) | |
download | yt-local-3fbaff704571293be83e2b56d36b761f42cce1ec.tar.gz yt-local-3fbaff704571293be83e2b56d36b761f42cce1ec.tar.bz2 yt-local-3fbaff704571293be83e2b56d36b761f42cce1ec.zip |
Diffstat (limited to 'youtube/static/js/watch.js')
-rw-r--r-- | youtube/static/js/watch.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube/static/js/watch.js b/youtube/static/js/watch.js index 95d9fa7..00803cf 100644 --- a/youtube/static/js/watch.js +++ b/youtube/static/js/watch.js @@ -5,8 +5,9 @@ function changeQuality(selection) { let videoPaused = video.paused; let videoSpeed = video.playbackRate; let srcInfo; - if (avMerge) + if (avMerge && typeof avMerge.close === 'function') { avMerge.close(); + } if (selection.type == 'uni'){ srcInfo = data['uni_sources'][selection.index]; video.src = srcInfo.url; |