Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Copy to Clipboard doesn't work #681

Closed
4 tasks done
wtld opened this issue May 28, 2022 · 2 comments
Closed
4 tasks done

[BUG] Copy to Clipboard doesn't work #681

wtld opened this issue May 28, 2022 · 2 comments
Assignees
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working

Comments

@wtld
Copy link

wtld commented May 28, 2022

Environment

Self-Hosted (Docker)

Version

2.0.9

Describe the problem

Export config to clipboard doesn't work (button "Copy to Clipboard"). Message in the console:

vue.runtime.esm.js:1897 TypeError: Cannot read properties of undefined (reading 'writeText')
    at r.copyConfigToClipboard (ExportConfigMenu.vue:83:27)
    at click (Button.vue?df23:1:384)
    at ne (vue.runtime.esm.js:1863:26)
    at HTMLButtonElement.i (vue.runtime.esm.js:2188:14)
    at HTMLButtonElement.Qs.o._wrapper (vue.runtime.esm.js:6961:25)

Additional info

No response

Please tick the boxes

@wtld wtld added the 🐛 Bug [ISSUE] Ticket describing something that isn't working label May 28, 2022
@Lissy93
Copy link
Owner

Lissy93 commented May 28, 2022

Hiya @wtld 👋 Sorry about that
Are you running the app over HTTPS? Copying to the clipboard requires the app to be running in a secure origin / aka have valid HTTPS cert. This is explained in a bit more detail here.

As a workaround, you could either:

  • Highlight the text and copy / Ctrl + C
  • Or setup SSL - here's a guide on doing so

From my end, I will add an error boundary in, to check if clipboard access is available in the users context, and display a more meaningful message if not :)

@wtld
Copy link
Author

wtld commented May 28, 2022

Thank you for the quick reply. I don't use ssl so that's the reason.

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label May 28, 2022
@Lissy93 Lissy93 closed this as completed May 28, 2022
@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label May 28, 2022
Lissy93 added a commit that referenced this issue Jun 4, 2022
[FEATURE] AdGuard Widget and QoL Improvments

Closes #493
Closes #669
Closes #680
Closes #681
Closes #682
Closes #688
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working
Projects
None yet
Development

No branches or pull requests

3 participants