Skip to content

Commit e096d85

Browse files
authored
Merge pull request #1959 from sixhat/master
Changed print for cases when JSON.parse returns empty object
2 parents e80f8ba + 7dc469c commit e096d85

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/core/environment.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ if (window.console && console.log) {
5858
console.log.apply(console, arguments);
5959
} else {
6060
var newArgs = JSON.parse(JSON.stringify(args));
61-
console.log(newArgs);
61+
if (JSON.stringify(newArgs)==='{}'){
62+
console.log(args);
63+
} else {
64+
console.log(newArgs);
65+
}
6266
}
6367
} catch(err) {
6468
console.log(args);

0 commit comments

Comments
 (0)