Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/onweru/compose.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/index.js')
-rw-r--r--assets/js/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/assets/js/index.js b/assets/js/index.js
index 28411e4..4cae091 100644
--- a/assets/js/index.js
+++ b/assets/js/index.js
@@ -217,9 +217,13 @@ function loadActions() {
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);
}
}