]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
application.js: remove non-existent selector (#32131)
authorXhmikosR <xhmikosr@gmail.com>
Fri, 13 Nov 2020 16:56:04 +0000 (18:56 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Nov 2020 16:56:04 +0000 (18:56 +0200)
site/assets/js/application.js

index 52822dc0ce284b344eb6597726f61122804bbd7b..998fac01498b05581b37841b21b8a69b1d454e2a 100644 (file)
@@ -93,7 +93,7 @@
 
   // Insert copy to clipboard button before .highlight
   var btnHtml = '<div class="bd-clipboard"><button type="button" class="btn-clipboard" title="Copy to clipboard">Copy</button></div>'
-  document.querySelectorAll('figure.highlight, div.highlight')
+  document.querySelectorAll('div.highlight')
     .forEach(function (element) {
       element.insertAdjacentHTML('beforebegin', btnHtml)
     })