From 36a5c56ee056d3b68642b400d537d072a7c8617c Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Wed, 11 Jul 2018 10:25:54 +0000 Subject: [PATCH] Deploy website Deploy website version based on a7a214fb3a36b3627e4346c2ddbcc4d01e3bf3a1 --- js/code-blocks-buttons.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/code-blocks-buttons.js b/js/code-blocks-buttons.js index a9435d83f3..0606b056ac 100644 --- a/js/code-blocks-buttons.js +++ b/js/code-blocks-buttons.js @@ -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'); },