fix caption

This commit is contained in:
Rhiannon Morris 2020-07-19 00:11:48 +02:00
parent b855fbc9ad
commit 5f54466ec0

View file

@ -13,7 +13,7 @@ function setImage(src, href, cw) {
let caption = getById('cw'); let caption = getById('cw');
if (defined(caption) && defined(cw)) { if (defined(caption) && defined(cw)) {
caption.innerHTML = cw; caption.innerHTML = `<span id=cw-text>cw: <b>${cw}</b></span>`;
} else if (defined(caption)) { } else if (defined(caption)) {
mainfig.removeChild(caption); mainfig.removeChild(caption);
} else if (defined(cw)) { } else if (defined(cw)) {