Skip to content

Replace eval() with JSON.parse()#10

Merged
dufferzafar merged 2 commits intodufferzafar:masterfrom
augustjanse:patch-1
Jun 12, 2017
Merged

Replace eval() with JSON.parse()#10
dufferzafar merged 2 commits intodufferzafar:masterfrom
augustjanse:patch-1

Conversation

@augustjanse
Copy link
Collaborator

Fixes #8. Not sure why the $.parseJSON() line was commented out, but apparently it is deprecated with jQuery 3.0, so I replaced both lines with its successor.

Error fixed:

Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' *.apple.com".


    at callbackFunction (<anonymous>:70:45)
    at XMLHttpRequest.xmlhttp.onreadystatechange (<anonymous>:63:47)

@augustjanse augustjanse mentioned this pull request Jun 12, 2017
@augustjanse
Copy link
Collaborator Author

For the record, the eval() has been there since the script was imported.

@dufferzafar dufferzafar merged commit 408619c into dufferzafar:master Jun 12, 2017
@dufferzafar
Copy link
Owner

Thanks a lot @augustjanse

@augustjanse augustjanse deleted the patch-1 branch June 12, 2017 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iTunes import broken after redesign

2 participants