sstidl 1 rok temu
rodzic
commit
cc4c2f8bc9
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      frontend/javascript/index.js

+ 1 - 1
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");