mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-09-20 04:53:43 +02:00
removed response.ok for response === 200
This commit is contained in:
parent
caeb347137
commit
77ce9433a7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue