Migration general theme: fix query video tag

This commit is contained in:
Jesús
2020-12-15 12:30:46 -05:00
parent a6f21bbc65
commit f9461a2e79
5 changed files with 16 additions and 15 deletions

View File

@@ -13,7 +13,7 @@ function load_sponsorblock(){
const info_elem = Q('#skip_n');
if (info_elem.innerText.length) return; // already fetched
const hash = sha256(data.video_id).substr(0,4);
const video_obj = Q("video");
const video_obj = QId("js-video-player");
let url = `/https://sponsor.ajay.app/api/skipSegments/${hash}`;
fetch(url)
.then(response => response.json())
@@ -37,4 +37,4 @@ function load_sponsorblock(){
}
}
});
}
}