]> git.p6c8.net - jirafeau_project.git/blobdiff - lib/functions.js.php
[TASK] Refresh lang support in README.md
[jirafeau_project.git] / lib / functions.js.php
index 845da827ac7adb91c5199e3b47977918ba903922..532787d4ae4bb609864642ae4e5afd2d6981b017 100644 (file)
@@ -742,8 +742,10 @@ function copyLinkToClipboard(link_id) {
 }
 
 function addCopyListener(button_id, link_id) {
-    document.getElementById(button_id)
+    if(document.getElementById(button_id)){
+        document.getElementById(button_id)
             .addEventListener("click", function() {
                 copyLinkToClipboard(link_id);});
+    }
 }
 // @license-end

patrick-canterino.de