Skip to content

Commit

Permalink
Remove clipboard JavaScript library
Browse files Browse the repository at this point in the history
The `clipboard` JavaScript library was being used to copy code snippets
to the user's clipboard when a button is clicked. This patch replaces it
with the built-in `navigator.clipboard.writeText` API, which is widely
available: https://caniuse.com/mdn-api_clipboard_writetext.

This patch should bring no user-facing changes.
  • Loading branch information
adamzap authored Dec 9, 2024
1 parent af9fa45 commit 92261b1
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 1,088 deletions.
3 changes: 1 addition & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"dependencies": {
"jquery": "<2.0",
"webfontloader": "~1.5.10",
"jquery-flot": "~0.8.3",
"clipboard": "~1.5.12"
"jquery-flot": "~0.8.3"
}
}
33 changes: 0 additions & 33 deletions djangoproject/static/js/lib/clipboard/.bower.json

This file was deleted.

22 changes: 0 additions & 22 deletions djangoproject/static/js/lib/clipboard/bower.json

This file was deleted.

28 changes: 0 additions & 28 deletions djangoproject/static/js/lib/clipboard/contributing.md

This file was deleted.

Loading

0 comments on commit 92261b1

Please sign in to comment.