fix all images and links

This commit is contained in:
j 2021-10-27 11:29:40 +01:00
parent 805752169b
commit 1fb35c79a6

View file

@ -219,7 +219,7 @@ function renderAnnotation(config, video, ascroll, annotation) {
if (annotation.title) {
figcaption = `<figcaption><a href="${baseURL}/${annotation.id}" target="_blank">${annotation.title}</a></figcaption>`
}
annotation.value = annotation.value.replace('src="/', `src="${baseURL}/`).replace('href="/', `href="${baseURL}/`)
annotation.value = annotation.value.replace(/src="\//g, `src="${baseURL}/`).replace(/href="\//g, `href="${baseURL}/`)
div.innerHTML = `
<div class="frame">
<figure>