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

Commit

Permalink
Remove check for document.securityPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelw committed Apr 25, 2014
1 parent c57f0e0 commit feacd20
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/observe.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,6 @@
var hasObserve = detectObjectObserve();

function detectEval() {
// don't test for eval if document has CSP securityPolicy object and we can see that
// eval is not supported. This avoids an error message in console even when the exception
// is caught
if (global.document &&
'securityPolicy' in global.document &&
!global.document.securityPolicy.allowsEval) {
return false;
}

// Don't test for eval if we're running in a Chrome App environment.
// We check for APIs set that only exist in a Chrome App context.
if (typeof chrome !== 'undefined' && chrome.app && chrome.app.runtime) {
Expand Down

0 comments on commit feacd20

Please sign in to comment.