mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 20:47:11 +03:00
Moves submission error check into the proper place
This commit is contained in:
@@ -227,12 +227,12 @@ async function submitTimes(videoID: string, callback) {
|
|||||||
increasedContributionAmount = true;
|
increasedContributionAmount = true;
|
||||||
Config.config.sponsorTimesContributed = Config.config.sponsorTimesContributed + sponsorTimes.length;
|
Config.config.sponsorTimesContributed = Config.config.sponsorTimesContributed + sponsorTimes.length;
|
||||||
}
|
}
|
||||||
} else if (error) {
|
|
||||||
callback({
|
|
||||||
statusCode: -1
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
} else if (error) {
|
||||||
|
callback({
|
||||||
|
statusCode: -1
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user