This commit is contained in:
Jeremy Thomas
2018-02-13 11:15:12 +00:00
parent 868bc4168b
commit 25631eedb4
3 changed files with 17 additions and 13 deletions

View File

@@ -152,11 +152,13 @@ document.addEventListener('DOMContentLoaded', () => {
});
}
new Clipboard('.bd-copy', {
target: function(trigger) {
return trigger.previousSibling;
}
});
setTimeout(() => {
new Clipboard('.bd-copy', {
target: trigger => {
return trigger.previousElementSibling.firstElementChild;
}
});
}, 100);
// Functions