mirror of
https://github.com/gnh1201/caterpillar.git
synced 2024-11-26 15:31:45 +00:00
Update console.html
This commit is contained in:
parent
d494195996
commit
6587e4a39e
|
@ -60,7 +60,7 @@
|
|||
var start = s.indexOf('{');
|
||||
var end = s.lastIndexOf('}');
|
||||
if (start > -1 && end > -1 && end > start) {
|
||||
responseData = JSON.parse(s.substring(start, end));
|
||||
responseData = JSON.parse(s.substring(start, end + 1));
|
||||
} else {
|
||||
throw new Error("It does not seem like a JSON format.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user