You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2020/11/02 20:36:21 UTC
[camel-website] 04/04: refactor: speedup relative links rule
This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git
commit 5f7813774aac2db57aefc29b73df0b4537f5307c
Author: Zoran Regvart <zr...@apache.org>
AuthorDate: Mon Nov 2 21:36:05 2020 +0100
refactor: speedup relative links rule
---
rules.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rules.js b/rules.js
index 53e8eda..9271c3f 100644
--- a/rules.js
+++ b/rules.js
@@ -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;
}