summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2017-05-07 00:50:38 +0200
committerDaniel Carl <danielcarl@gmx.de>2017-05-07 01:32:10 +0200
commit4705fb296c8cb2e41f1a02d639dab8ab89aff43c (patch)
treecc20d17e9ba798c29e8a33c566054d94bbeedeee
parentfaba66545756a7c97c5a034f2bae63cc8ee82184 (diff)
Don't fail on same origin policy violations #349.
-rw-r--r--src/scripts/hints.js8
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();