From 90a787903bbc7067b048f28cc476fa6bb5618eba Mon Sep 17 00:00:00 2001 From: ImprovedTube Date: Wed, 23 Oct 2024 16:09:06 +0200 Subject: [PATCH] typo https://github.com/code-charity/youtube/pull/2565/commits/139f31cb9d88598d4dd37df73e0d232fff2147b2 #2565 @dodieboy --- js&css/web-accessible/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js&css/web-accessible/functions.js b/js&css/web-accessible/functions.js index 130f87db1..678c549f7 100644 --- a/js&css/web-accessible/functions.js +++ b/js&css/web-accessible/functions.js @@ -386,7 +386,7 @@ ImprovedTube.playerOnTimeUpdate = function () { ImprovedTube.playerOnLoadedMetadata = function () { setTimeout(function () {ImprovedTube.playerSize();}, 100); - setTimeout(function () { ImprovedTube.transcript(ImprovedTube.elements.panels); ImprovedTube.chapters(document.querySelector(ImprovedTube.elements.panels));}, 250); + setTimeout(function () { if (ImprovedTube.elements.panels) { ImprovedTube.transcript(ImprovedTube.elements.panels); ImprovedTube.chapters(ImprovedTube.elements.panels);}}, 250); }; ImprovedTube.playerOnPause = function (event) {