Update soapbox.js to log soapbox.json parsing errors to the console. Fixes #171

Removed unnecessary semicolon at end of file
This commit is contained in:
Curtis 2020-06-09 23:53:35 +00:00
parent 9fa7f7bf0f
commit 76b620a802

View file

@ -21,9 +21,12 @@ export function importSoapboxConfig(soapboxConfig) {
} }
export function soapboxConfigFail(error) { export function soapboxConfigFail(error) {
if (!error.response) {
console.error('soapbox.json parsing error: ' + error);
}
return { return {
type: SOAPBOX_CONFIG_REQUEST_FAIL, type: SOAPBOX_CONFIG_REQUEST_FAIL,
error, error,
skipAlert: true, skipAlert: true,
}; };
}; }