From 77ce9433a75efd449fc7624bb0288f5dfedeeee0 Mon Sep 17 00:00:00 2001 From: FlorianZahn Date: Wed, 13 Oct 2021 06:08:14 +0200 Subject: [PATCH] removed response.ok for response === 200 --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index f708e4f4..c6318b29 100644 --- a/src/content.ts +++ b/src/content.ts @@ -797,7 +797,7 @@ async function lockedSegmentsLookup() { } utils.sendRequestToServer("GET", "/api/segmentInfo?UUIDs=[" + url + "]", (response) => { - if (response.status === 200 && response.ok) { + if (response.status === 200) { for (let i = 0; i < sponsorTimes.length && i < 10; i++) { //because the api only return 10 segments maximum sponsorTimes[i].locked = (JSON.parse(response.responseText)[i].locked === 1) ? true : false; }