mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 14:07:13 +03:00
Update popup.js
This commit is contained in:
6
popup.js
6
popup.js
@@ -593,13 +593,11 @@ EN_US.set(400, 'Server said this request was invalid"')
|
||||
.set(429, 'You have submitted too many sponsor times for this one video, are you sure there are this many?')
|
||||
.set(409, 'This has already been submitted before')
|
||||
.set(502, 'It seems the server is down. Contact the dev to inform them.')
|
||||
.set('Unknown', 'here was an error submitting your sponsor times, please try again later.');
|
||||
.set('Unknown', 'there was an error submitting your sponsor times, please try again later.');
|
||||
|
||||
function ErrorParser (Lang, statusCode) {
|
||||
if(Lang.has(statusCode)) return Lang.get(statusCode);
|
||||
Unknown = Lang.get('Unknown');
|
||||
Unknown += Error code " + statusCode;
|
||||
return Lang.get('Unknown');
|
||||
return Lang.get('Unknown').concat(" Error code: ") + statusCode;
|
||||
}
|
||||
|
||||
function submitTimes() {
|
||||
|
||||
Reference in New Issue
Block a user