Closed subnetmasked closed 5 days ago
Awesome!
Glad you found it useful for your project, friend! 💯
Don't forget to star the repo!!! and create more issues
Don't forget to star the repo!!! and create more issues
Sure thing! Feel free to send me an email or contact me on keybase if there's something specific you want to discuss about your project, or just banter about nerdy stuff 🥸 Contact info is on my Github profile
Sure, would love to banter🫠
This pull request improves the
copyQuote
function in theassets/js/script.js
file. The changes enhance functionality, improve readability, and add better error handling. Here are the specific improvements made:Early Return:
Removed Unnecessary Return Values:
1
and0
have been removed as they were not used anywhere in the code. This simplifies the function.Clipboard API Support Check:
Promise Handling:
.then()
and.catch()
to handle the promise returned bynavigator.clipboard.writeText
. This provides better error feedback to the user and logs any errors to the console.Code Changes: