From 3b5df36b0310b751fc25f8c0b7167c659c8259de Mon Sep 17 00:00:00 2001 From: zrose584 <57181548+zrose584@users.noreply.github.com> Date: Wed, 21 Oct 2020 10:29:57 +0200 Subject: fix sponserblock:js --- youtube/static/js/sponsorblock.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'youtube/static/js/sponsorblock.js') diff --git a/youtube/static/js/sponsorblock.js b/youtube/static/js/sponsorblock.js index 692de9b..dab4372 100644 --- a/youtube/static/js/sponsorblock.js +++ b/youtube/static/js/sponsorblock.js @@ -17,8 +17,8 @@ function load_sponsorblock(){ let url = `/https://sponsor.ajay.app/api/skipSegments/${hash}`; fetch(url) .then(response => response.json()) - .then(data => { - for (const video of data) { + .then(r => { + for (const video of r) { if (video.videoID != data.video_id) continue; info_elem.innerText = `(${video.segments.length} segments)`; const cat_n = video.segments.map(e=>e.category).sort() -- cgit v1.2.3