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:
parent
9fa7f7bf0f
commit
76b620a802
1 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
Loading…
Reference in a new issue