Skip to content

Commit 55f4069

Browse files
committed
style: Improve toast messages for API key and example code copying
1 parent 3fc41bc commit 55f4069

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/pages/apps-id.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
function copyApiKey() {
2121
const apiKey = '<%= app.api_key %>';
2222
navigator.clipboard.writeText(apiKey).then(() => {
23-
alert('🔑 API key copied to clipboard!');
23+
createToast('🔑 API key copied to clipboard!')
2424
});
2525
}
2626

@@ -33,7 +33,7 @@
3333
}
3434

3535
navigator.clipboard.writeText(demoCode).then(() => {
36-
createToast('copied!')
36+
createToast('👨‍💻 example code copied to clipboard!')
3737
});
3838
}
3939
</script>

0 commit comments

Comments
 (0)