Skip to content

Commit

Permalink
refactor: speedup relative links rule
Browse files Browse the repository at this point in the history
  • Loading branch information
zregvart committed Nov 2, 2020
1 parent 81e3037 commit 5f78137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class RelativeLinks extends Rule {

setup() {
this.on("dom:ready", event => {
const anchors = event.document.querySelectorAll('a');
const anchors = event.document.getElementsByTagName('a');
if (anchors === null) {
return;
}
Expand Down

0 comments on commit 5f78137

Please sign in to comment.