diff options
Diffstat (limited to 'script.js')
-rw-r--r-- | script.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -71,7 +71,8 @@ function renderList(results) { const a = document.createElement('a'); a.textContent = feat.title; a.innerHTML = a.innerHTML.replaceAll(/`(.+?)`/g, (_, x) => `<code>${x}</code>`); - a.href = feat.url; + if (feat.url) + a.href = feat.url; if (feat.flag) a.title = feat.flag; li.appendChild(a); |