diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2019-10-13 17:02:57 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2019-10-13 17:15:42 +0200 |
commit | d5b42bf459545d4b73933a4b0be5306c3a3189c6 (patch) | |
tree | 8d5a2014169e6a560f4f36bc4963407fd823a13d /crocoite/data | |
parent | 7824199eb42640a4b2d83d7f8fc3aa55204dda89 (diff) | |
download | crocoite-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.js | 2 |
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); |