From ae2dbf09911fd7e3248ac527d220e68abfc8c195 Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Mon, 28 Aug 2017 18:37:38 -0700 Subject: fix issue with website glyph browser for glyphs w/o a unicode mapping --- docs/glyphs/glyphs.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'docs') 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 || '') } -- cgit v1.2.3