Skip to content

Commit

Permalink
fix: Replace alert with button text change to indicate ghost key copied
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Aug 11, 2024
1 parent 9fcc9cf commit 5de3e99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hugo-site/static/js/donation-success.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,10 @@ function displayCertificate(armoredCertificate, armoredSigningKey) {
copyButton.addEventListener('click', function() {
combinedKeyTextarea.select();
document.execCommand('copy');
alert('Ghost Key certificate and signing key copied to clipboard!');
copyButton.textContent = 'Copied!';
setTimeout(() => {
copyButton.textContent = 'Copy';
}, 2000);
});
}

Expand Down

0 comments on commit 5de3e99

Please sign in to comment.