Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jun 12, 2017

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