Skip to content

Commit

Permalink
馃悰 Fix: Accessing window.top.{constructor|prototype} throws error in iOS
Browse files Browse the repository at this point in the history
Exclude window.top so that no security errors are thrown when es5-shim is used in an iframe from a
different domain
  • Loading branch information
Tom Gasson committed Jun 26, 2017
1 parent 7f6ddd6 commit e894eaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion es5-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,8 @@
$webkitStorageInfo: true,
$external: true,
$width: true,
$height: true
$height: true,
$top: true
};
var hasAutomationEqualityBug = (function () {
/* globals window */
Expand Down

0 comments on commit e894eaf

Please sign in to comment.