Skip to content

Commit

Permalink
fix: migrate to the new ClipboardJS instantiation to resolve conflict…
Browse files Browse the repository at this point in the history
… with window.Clipboard
DanielRuf committed Apr 3, 2018
1 parent 011d815 commit b323354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/docs.copyButton.js
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ $('[data-docs-code]').each(function(index, value) {

$(this).prepend($button);

var clipboard = new Clipboard('#' + copyBtnId, {
var clipboard = new ClipboardJS('#' + copyBtnId, {
text: function() {
return text;
}

0 comments on commit b323354

Please sign in to comment.