Skip to content

Commit

Permalink
Update clipboard.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorBracewell authored Feb 23, 2022
1 parent f1deeea commit fa6d4cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clipboard.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Clipboard Copying
const timeouts = [];
const cuddleText = document.querySelector(".cuddle");

document.querySelector(".cuddle").addEventListener("click", () => {
cuddleText.addEventListener("click", () => {
// Reset timeouts
for (const timeout of timeouts) {
clearTimeout(timeout);
Expand Down

0 comments on commit fa6d4cf

Please sign in to comment.