Skip to content

Commit

Permalink
Merge pull request #3620 from rtibbles/remove-clipboard-polyfill
Browse files Browse the repository at this point in the history
Removes use of the clipboard-polyfill and just uses the native API instead
  • Loading branch information
rtibbles authored Sep 12, 2022
2 parents da65878 + 96e5d9b commit 3aae8f1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

<script>
import * as clipboard from 'clipboard-polyfill';
export default {
name: 'CopyToken',
props: {
Expand Down Expand Up @@ -51,7 +49,7 @@
},
methods: {
copyToken() {
clipboard
navigator.clipboard
.writeText(this.displayToken)
.then(() => {
let text = this.successText || this.$tr('copiedTokenId');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@

<script>
import * as clipboard from 'clipboard-polyfill';
export default {
name: 'TechnicalTextBlock',
props: {
Expand Down Expand Up @@ -65,7 +63,7 @@
},
methods: {
copyError() {
clipboard
navigator.clipboard
.writeText(this.formattedText)
.then(() => {
this.$store.dispatch('showSnackbar', {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"ajv": "^8.9.0",
"axios": "^0.27.2",
"broadcast-channel": "^4.14.0",
"clipboard-polyfill": "^2.8.1",
"codemirror": "5.58.2",
"core-js": "^3.25.0",
"dexie": "^3.2.2",
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3515,11 +3515,6 @@ [email protected]:
exit "0.1.2"
glob "~ 3.2.1"

clipboard-polyfill@^2.8.1:
version "2.8.6"
resolved "https://registry.yarnpkg.com/clipboard-polyfill/-/clipboard-polyfill-2.8.6.tgz#19d27283f11f2933bb18737263b98b8c95b5a0f7"
integrity sha512-kz/1ov+PXsBpGnW9XJH3dLWdYj12FpXqO89Dngm/GRPoI36E/tnYs6N0YPTEhxM9WHAlFiN5eoyIVuv5nzKXvg==

cliui@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5"
Expand Down

0 comments on commit 3aae8f1

Please sign in to comment.