From f5f63455d6cc8024439be212e1813fd2c1812fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 30 Jun 2022 19:27:54 +0200 Subject: [PATCH] Web: add comment to explain URL of last-rendered image No functional changes. --- web/app/src/components/jobs/LastRenderedImage.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/app/src/components/jobs/LastRenderedImage.vue b/web/app/src/components/jobs/LastRenderedImage.vue index d765c37b..1454059a 100644 --- a/web/app/src/components/jobs/LastRenderedImage.vue +++ b/web/app/src/components/jobs/LastRenderedImage.vue @@ -38,6 +38,9 @@ function setImageURL(thumbnailInfo) { for (let suffix of thumbnailInfo.suffixes) { if (!suffix.includes("-tiny")) continue; + // This uses the API URL to construct the image URL, as the image comes from + // Flamenco Manager, and not from any development server that might be + // serving the webapp. let url = new URL(api()); url.pathname = thumbnailInfo.base + "/" + suffix url.search = new Date().getTime(); // This forces the image to be reloaded.