mirror of https://github.com/onweru/compose.git

Blake Gearin
10.29.2022 65b76042967afe1c7d092b08e0a3cf571d3dedef
assets/js/index.js
@@ -217,9 +217,13 @@
    copyText.classList.add(yanked);
    copyText.innerText = 'Link Copied';
    if(!elem(`.${yanked}`, parent)) {
      const icon = parent.getElementsByTagName('img')[0];
      const originalSrc = icon.src;
      icon.src = '{{ absURL "icons/check.svg" }}';
      parent.appendChild(copyText);
      setTimeout(function() {
        parent.removeChild(copyText)
        icon.src = originalSrc;
      }, 2250);
    }
  }