diff options
Diffstat (limited to 'src/dumbymap.mjs')
-rw-r--r-- | src/dumbymap.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dumbymap.mjs b/src/dumbymap.mjs index 4d1a2ed..fb89d61 100644 --- a/src/dumbymap.mjs +++ b/src/dumbymap.mjs | |||
@@ -165,7 +165,7 @@ export const generateMaps = (container, { | |||
165 | /** LINK: Add external symbol on anchors */ | 165 | /** LINK: Add external symbol on anchors */ |
166 | container.querySelectorAll('a') | 166 | container.querySelectorAll('a') |
167 | .forEach(a => { | 167 | .forEach(a => { |
168 | if (a.href.startsWith('http') && !a.href.startsWith(window.location.origin)) { | 168 | if (typeof a.href === 'string' && a.href.startsWith('http') && !a.href.startsWith(window.location.origin)) { |
169 | a.classList.add('external') | 169 | a.classList.add('external') |
170 | } | 170 | } |
171 | }) | 171 | }) |