You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-22 04:02:40 +03:00
Linting
This commit is contained in:
@@ -384,7 +384,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
resolve(JSON.parse(body));
|
resolve(JSON.parse(body));
|
||||||
}catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
if (e.name === "SyntaxError") {
|
if (e.name === "SyntaxError") {
|
||||||
reject({wkAction: "FAIL_PROMPT", wkError: "Invalid JSON"});
|
reject({wkAction: "FAIL_PROMPT", wkError: "Invalid JSON"});
|
||||||
|
|||||||
Reference in New Issue
Block a user