mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 04:27:15 +03:00
removed response.ok for response === 200
This commit is contained in:
@@ -797,7 +797,7 @@ async function lockedSegmentsLookup() {
|
|||||||
}
|
}
|
||||||
utils.sendRequestToServer("GET", "/api/segmentInfo?UUIDs=[" + url + "]",
|
utils.sendRequestToServer("GET", "/api/segmentInfo?UUIDs=[" + url + "]",
|
||||||
(response) => {
|
(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
|
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;
|
sponsorTimes[i].locked = (JSON.parse(response.responseText)[i].locked === 1) ? true : false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user