Update popup.js

This commit is contained in:
Official Noob
2019-07-30 19:44:45 +01:00
committed by GitHub
parent a4eb37db18
commit 0d8c18a38a

View File

@@ -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() {