Created
February 10, 2016 23:09
-
-
Save thejefflarson/2b0d2b966002c7cf0e99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (req.responseText.indexOf('{') == 0) { | |
try { | |
eval('obj = '+req.responseText); | |
} catch (err) { | |
console.warn('unable to do anything with api rsp'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment