Skip to content
New issue

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

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

Already on GitHub? # to your account

Unable to copy code-snippet on Raspberry Pi #6

Closed
Akashic101 opened this issue Sep 23, 2021 · 1 comment · Fixed by #9
Closed

Unable to copy code-snippet on Raspberry Pi #6

Akashic101 opened this issue Sep 23, 2021 · 1 comment · Fixed by #9
Labels
🐞 Bug Something isn't working

Comments

@Akashic101
Copy link

When trying to copy a snippet using the copy code-button I recieve an error in the console:

react-dom.production.min.js:101 Uncaught TypeError: Cannot read properties of undefined (reading 'writeText')
    at handler (SnippetDetails.tsx:33)
    at Object.He (react-dom.production.min.js:52)
    at Ke (react-dom.production.min.js:52)
    at react-dom.production.min.js:53
    at _r (react-dom.production.min.js:100)
    at Tr (react-dom.production.min.js:101)
    at react-dom.production.min.js:113
    at De (react-dom.production.min.js:292)
    at react-dom.production.min.js:50
    at zr (react-dom.production.min.js:105)

I'm using the Docker-image running on a Pi 4b with Rasbian Buster

@pawelmalak
Copy link
Owner

It's not the problem with the platform but with browser security. It works in the development environment and when you put it behind reverse proxy and access it with https. It's not working however when it's deployed and accessed with http.

I will take a closer look on how to implement universal solution.

@pawelmalak pawelmalak added the 🐞 Bug Something isn't working label Sep 23, 2021
@pawelmalak pawelmalak linked a pull request Sep 24, 2021 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🐞 Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants