Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Changed hasEval test to avoid console error when browser supports security policy #26

Merged
merged 2 commits into from
Sep 4, 2013

Conversation

mangini
Copy link
Contributor

@mangini mangini commented Sep 4, 2013

If securityPolicy is not supported, use the old try/catch procedure.
(CSP errors are always sent to console, even when they get caught in a try/catch block)

…ityPolicy.

If securityPolicy is not supported, use the previous try/catch procedure.
CSP errors are always sent to console, even when they get caught in a try/catch block.
@mangini
Copy link
Contributor Author

mangini commented Sep 4, 2013

Makes sense. Changed.

rafaelw added a commit that referenced this pull request Sep 4, 2013
Changed hasEval test to avoid console error when browser supports security policy
@rafaelw rafaelw merged commit 4d3bf23 into googlearchive:master Sep 4, 2013
@bergie
Copy link

bergie commented Mar 7, 2014

document.securityPolicy has since unfortunately been removed, see #44

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants