Skip to content

Commit 45b649f

Browse files
committed
application.js: make the clipboard button selector more restrictive.
1 parent a6996ef commit 45b649f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/src/application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
})
5555

5656
// Insert copy to clipboard button before .highlight
57-
$('.highlight').each(function () {
57+
$('figure.highlight, div.highlight').each(function () {
5858
var btnHtml = '<div class="bd-clipboard"><button class="btn-clipboard" title="Copy to clipboard">Copy</button></div>'
5959
$(this).before(btnHtml)
6060
$('.btn-clipboard')

0 commit comments

Comments
 (0)