mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-27 22:34:51 +00:00
copy link
This commit is contained in:
@@ -980,11 +980,11 @@ function renderDesktopConversion(container, channelLink, showAppBadges) {
|
||||
const copyAction = document.createElement('p');
|
||||
copyAction.className = 'simplex-preview-copy-action';
|
||||
const copyLink = document.createElement('a');
|
||||
copyLink.textContent = 'Copy link';
|
||||
copyLink.textContent = 'copy link';
|
||||
copyLink.addEventListener('click', function() {
|
||||
navigator.clipboard.writeText(channelLink).then(function() {
|
||||
copyLink.textContent = 'Copied!';
|
||||
setTimeout(function() { copyLink.textContent = 'Copy link'; }, 2000);
|
||||
setTimeout(function() { copyLink.textContent = 'copy link'; }, 2000);
|
||||
});
|
||||
});
|
||||
copyAction.appendChild(document.createTextNode('Or '));
|
||||
|
||||
Reference in New Issue
Block a user