mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 23:57:22 +02:00
parent
cfe7db7422
commit
36a5c56ee0
1 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
/* global ClipboardJS */
|
||||
|
||||
// Turn off ESLint for this file because it's sent down to users as-is.
|
||||
/* eslint-disable */
|
||||
window.addEventListener('load', function() {
|
||||
function button(label, ariaLabel, icon, className) {
|
||||
const btn = document.createElement('button');
|
||||
|
@ -31,8 +31,6 @@ window.addEventListener('load', function() {
|
|||
);
|
||||
|
||||
const clipboard = new ClipboardJS('.btnClipboard', {
|
||||
// Not gonna use the shorthand as this file is sent down to browsers without transpiling.
|
||||
/* eslint-disable object-shorthand */
|
||||
target: function(trigger) {
|
||||
return trigger.parentNode.querySelector('code');
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue