From d8a48ed9bca889dec5c8ea04d47d7e322eda871d Mon Sep 17 00:00:00 2001 From: Joe Dowd Date: Fri, 4 Sep 2020 11:56:07 +0100 Subject: [PATCH] Update src/content.ts Co-authored-by: Ajay Ramachandran --- src/content.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/content.ts b/src/content.ts index 499dea18..7661edc1 100644 --- a/src/content.ts +++ b/src/content.ts @@ -634,9 +634,7 @@ function sponsorsLookup(id: string) { if (response?.ok) { let getResult = JSON.parse(response.responseText); if (Config.config.hashPrefix) { - getResult = getResult.filter((video) => { - return video.videoID = id; - }); + getResult = getResult.filter((video) => video.videoID === id); if (getResult.length > 0) { getResult = getResult[0].segments; if (getResult.length === 0) { // return if no segments found