From 497ada739122d6763e7c67960f45fc1d31585900 Mon Sep 17 00:00:00 2001 From: Daniel Svitan Date: Thu, 30 Oct 2025 13:18:44 +0100 Subject: [PATCH] :bug: Fixes copy link --- static/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/index.html b/static/index.html index aa9c08b..5a271d2 100644 --- a/static/index.html +++ b/static/index.html @@ -354,7 +354,7 @@ } function copyLink(id) { - navigator.clipboard.writeText(`http://localhost:8000/image/${id}`).catch((err) => alert(`Couldn't copy: ${err}`)); + navigator.clipboard.writeText(`${window.location.origin}/image/${id}`).catch((err) => alert(`Couldn't copy: ${err}`)); } init();