We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72dbbed commit f0b48feCopy full SHA for f0b48fe
templates/index.js
@@ -22,4 +22,7 @@ function copyTextHandler() {
22
crateTitleAndVersion.style.textTransform = oldTransform;
23
}
24
25
-document.getElementById("clipboard").addEventListener("click", copyTextHandler);
+(function() {
26
+ const clipboard = document.getElementById("clipboard");
27
+ if (clipboard != null) clipboard.addEventListener("click", copyTextHandler);
28
+})();
0 commit comments