Skip to content

Commit fa6d4cf

Browse files
Update clipboard.js
1 parent f1deeea commit fa6d4cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/clipboard.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Clipboard Copying
22
const timeouts = [];
3+
const cuddleText = document.querySelector(".cuddle");
34

4-
document.querySelector(".cuddle").addEventListener("click", () => {
5+
cuddleText.addEventListener("click", () => {
56
// Reset timeouts
67
for (const timeout of timeouts) {
78
clearTimeout(timeout);

0 commit comments

Comments
 (0)