mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-13 06:57:09 +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(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(409, 'This has already been submitted before')
|
||||||
.set(502, 'It seems the server is down. Contact the dev to inform them.')
|
.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) {
|
function ErrorParser (Lang, statusCode) {
|
||||||
if(Lang.has(statusCode)) return Lang.get(statusCode);
|
if(Lang.has(statusCode)) return Lang.get(statusCode);
|
||||||
Unknown = Lang.get('Unknown');
|
return Lang.get('Unknown').concat(" Error code: ") + statusCode;
|
||||||
Unknown += Error code " + statusCode;
|
|
||||||
return Lang.get('Unknown');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function submitTimes() {
|
function submitTimes() {
|
||||||
|
|||||||
Reference in New Issue
Block a user