diff options
author | Rasmus Andersson <rasmus@notion.se> | 2017-08-29 04:37:38 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2017-08-29 04:37:38 +0300 |
commit | ae2dbf09911fd7e3248ac527d220e68abfc8c195 (patch) | |
tree | 717bf52baffdf02df2004ae80dd0261d6d9d9e3e /docs | |
parent | 5f23e674d471a5fbbe7ce593c0af3df7d6c768e6 (diff) | |
download | inter-ae2dbf09911fd7e3248ac527d220e68abfc8c195.tar.xz |
fix issue with website glyph browser for glyphs w/o a unicode mapping
Diffstat (limited to 'docs')
-rw-r--r-- | docs/glyphs/glyphs.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/glyphs/glyphs.js b/docs/glyphs/glyphs.js index fccd1bce8..88e5ddb1b 100644 --- a/docs/glyphs/glyphs.js +++ b/docs/glyphs/glyphs.js @@ -519,7 +519,11 @@ function renderSingleInfo(g) { function configureUnicodeView(el, g) { var a = el.querySelector('a') - a.href = "https://codepoints.net/U+" + fmthex(g.unicode, 4) + if (g.unicode) { + a.href = "https://codepoints.net/U+" + fmthex(g.unicode, 4) + } else { + a.href = '' + } setv(el, 'unicodeCodePoint', g.unicode ? 'U+' + fmthex(g.unicode, 4) : '–') setv(el, 'unicodeName', g.unicodeName || '') } |