Skip to content

Commit

Permalink
style: Improve toast messages for API key and example code copying
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Oct 6, 2024
1 parent 3fc41bc commit 55f4069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/pages/apps-id.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
function copyApiKey() {
const apiKey = '<%= app.api_key %>';
navigator.clipboard.writeText(apiKey).then(() => {
alert('🔑 API key copied to clipboard!');
createToast('🔑 API key copied to clipboard!')
});
}

Expand All @@ -33,7 +33,7 @@
}

navigator.clipboard.writeText(demoCode).then(() => {
createToast('copied!')
createToast('👨‍💻 example code copied to clipboard!')
});
}
</script>
Expand Down

0 comments on commit 55f4069

Please sign in to comment.