Update src/content.ts

Co-authored-by: Ajay Ramachandran <dev@ajay.app>
This commit is contained in:
Joe Dowd
2020-09-04 11:55:42 +01:00
committed by GitHub
parent 35651d2a50
commit b6206fabbc

View File

@@ -637,7 +637,7 @@ function sponsorsLookup(id: string) {
getResult = getResult.filter((video) => { getResult = getResult.filter((video) => {
return video.videoID = id; return video.videoID = id;
}); });
if (getResult.length === 1) { if (getResult.length > 0) {
getResult = getResult[0].segments; getResult = getResult[0].segments;
if (getResult.length === 0) { // return if no segments found if (getResult.length === 0) { // return if no segments found
return; return;