Skip to content

Commit

Permalink
fixed csp json parse issue
Browse files Browse the repository at this point in the history
  • Loading branch information
spocke committed Feb 14, 2018
1 parent 96caa8c commit 8d1be46
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/main/ts/api/util/JSON.ts
Expand Up @@ -98,8 +98,7 @@ export default {
*/
parse (text) {
try {
// Trick uglify JS
return window[String.fromCharCode(101) + 'val']('(' + text + ')');
return JSON.parse(text);
} catch (ex) {
// Ignore
}
Expand Down

0 comments on commit 8d1be46

Please sign in to comment.