This website works better with JavaScript.
Home
Explore
Help
Sign In
jyt94
/
closedSocialMastodon
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Fix
#203
- try/catch around JSON parse
closed-social-v3
Eugen Rochko
8 years ago
parent
2b22c33039
commit
f92cb02b9b
1 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-1
app/assets/javascripts/components/api.jsx
+ 5
- 1
app/assets/javascripts/components/api.jsx
View File
@ -17,6 +17,10 @@ export default getState => axios.create({
}
,
transformResponse
:
[
function
(
data
)
{
return
JSON
.
parse
(
data
)
;
try
{
return
JSON
.
parse
(
data
)
;
}
catch
(
Exception
)
{
return
data
;
}
}
]
}
)
;
Write
Preview
Loading…
Cancel
Save