From cc4c2f8bc945990df7f2b43afc008c3239429aed Mon Sep 17 00:00:00 2001 From: sstidl Date: Sun, 1 Dec 2024 21:06:03 +0100 Subject: [PATCH] fix #685 --- frontend/javascript/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/javascript/index.js b/frontend/javascript/index.js index 200a45c36..0ba005c19 100644 --- a/frontend/javascript/index.js +++ b/frontend/javascript/index.js @@ -96,7 +96,7 @@ function startButtonClickHandler() { * Event listener for clicks on the "Copy link" button in the modal */ async function copyLinkButtonClickHandler() { - const link = document.querySelector("#share img").src; + const link = document.querySelector("img#results").src; await navigator.clipboard.writeText(link); const button = document.querySelector("#copy-link"); button.classList.add("active");