diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dumbyUtils.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dumbyUtils.mjs b/src/dumbyUtils.mjs index 0430f97..409fe93 100644 --- a/src/dumbyUtils.mjs +++ b/src/dumbyUtils.mjs | |||
@@ -220,7 +220,7 @@ export const createGeoLink = (link) => { | |||
220 | */ | 220 | */ |
221 | export const createDocLink = link => { | 221 | export const createDocLink = link => { |
222 | const label = decodeURIComponent(link.href.split('#')[1]) | 222 | const label = decodeURIComponent(link.href.split('#')[1]) |
223 | const selector = link.title.split('=>')[1] ?? label ? '#' + label : null | 223 | const selector = link.title.split('=>')[1] ?? (label ? '#' + label : null) |
224 | if (!selector) return false | 224 | if (!selector) return false |
225 | 225 | ||
226 | link.classList.add('with-leader-line', 'doclink') | 226 | link.classList.add('with-leader-line', 'doclink') |