Skip to content

Commit

Permalink
fix: clipboard polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Mar 21, 2020
1 parent e7871bb commit 05a365b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if (navigator && navigator.clipboard) {
addCopyButtons(navigator.clipboard);
} else {
const script = document.createElement('script');
script.src = '{{ partial "third-party/clipboard-polyfill.html" | safeJS }}';
script.src = 'https://cdn.jsdelivr.net/npm/clipboard-polyfill@2.8.6/dist/clipboard-polyfill.min.js';
script.defer = true;
script.onload = function() {
addCopyButtons(clipboard);
Expand Down
1 change: 0 additions & 1 deletion layouts/partials/third-party/clipboard-polyfill.html

This file was deleted.

0 comments on commit 05a365b

Please sign in to comment.