From 1fb35c79a6e573ffcf0d579a75a15a9259300873 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 27 Oct 2021 11:29:40 +0100 Subject: [PATCH] fix all images and links --- app/static/js/ascroll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/static/js/ascroll.js b/app/static/js/ascroll.js index c4a8218..2a584b4 100755 --- a/app/static/js/ascroll.js +++ b/app/static/js/ascroll.js @@ -219,7 +219,7 @@ function renderAnnotation(config, video, ascroll, annotation) { if (annotation.title) { figcaption = `
${annotation.title}
` } - 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 = `