sstidl 1 年之前
父節點
當前提交
a02f4e3e2a
共有 1 個文件被更改,包括 1 次插入1 次删除
  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");