removed response.ok for response === 200

This commit is contained in:
FlorianZahn 2021-10-13 06:08:14 +02:00 committed by GitHub
parent caeb347137
commit 77ce9433a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}