diff options
author | Daniel Carl <danielcarl@gmx.de> | 2017-05-07 00:50:38 +0200 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2017-05-07 01:32:10 +0200 |
commit | 4705fb296c8cb2e41f1a02d639dab8ab89aff43c (patch) | |
tree | cc20d17e9ba798c29e8a33c566054d94bbeedeee | |
parent | faba66545756a7c97c5a034f2bae63cc8ee82184 (diff) |
Don't fail on same origin policy violations #349.
-rw-r--r-- | src/scripts/hints.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/scripts/hints.js b/src/scripts/hints.js index c381e45..80c5df2 100644 --- a/src/scripts/hints.js +++ b/src/scripts/hints.js @@ -209,9 +209,11 @@ var hints = Object.freeze((function(){ /* recurse into any iframe or frame element */ for (i = 0; i < win.frames.length; i++) { - var rect, - f = win.frames[i], - e = f.frameElement; + try { + var rect, f = win.frames[i], e = f.frameElement; + } catch (ex) { + continue; + } if (isVisible(e)) { rect = e.getBoundingClientRect(); |