summaryrefslogtreecommitdiff
path: root/crocoite/data
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2019-10-13 17:02:57 +0200
committerLars-Dominik Braun <lars@6xq.net>2019-10-13 17:15:42 +0200
commitd5b42bf459545d4b73933a4b0be5306c3a3189c6 (patch)
tree8d5a2014169e6a560f4f36bc4963407fd823a13d /crocoite/data
parent7824199eb42640a4b2d83d7f8fc3aa55204dda89 (diff)
downloadcrocoite-d5b42bf459545d4b73933a4b0be5306c3a3189c6.tar.gz
crocoite-d5b42bf459545d4b73933a4b0be5306c3a3189c6.tar.bz2
crocoite-d5b42bf459545d4b73933a4b0be5306c3a3189c6.zip
extract-links: Do not depend on document.body
Fixes #25. Root frame does not actually display a page. Can’t reproduce this issue with a simple test case unfortunately.
Diffstat (limited to 'crocoite/data')
-rw-r--r--crocoite/data/extract-links.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/crocoite/data/extract-links.js b/crocoite/data/extract-links.js
index f3176da..5a4f9f0 100644
--- a/crocoite/data/extract-links.js
+++ b/crocoite/data/extract-links.js
@@ -27,7 +27,7 @@ function isClickable (o) {
let ret = [];
['a[href]', 'area[href]'].forEach (function (s) {
- let x = document.body.querySelectorAll(s);
+ let x = document.querySelectorAll(s);
for (let i=0; i < x.length; i++) {
if (isClickable (x[i])) {
ret.push (x[i].href);