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

​Can not copy #5944

Closed
1 task
mcgradycchen opened this issue Feb 28, 2024 · 6 comments
Closed
1 task

​Can not copy #5944

mcgradycchen opened this issue Feb 28, 2024 · 6 comments

Comments

@mcgradycchen
Copy link

mcgradycchen commented Feb 28, 2024

What happened?

I'm deploy a selfhosted affine with affine-graphql:stable-6ed5ec3, and access with Chrome.
Everything is working except copy content from affine. Both ctrl+c and copy button in the page are not working.

image

Distribution version

Windows x64

What browsers are you seeing the problem on if you're using web version?

No response

Relevant log output

No response

Anything else?

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@mcgradycchen
Copy link
Author

Update
Ctrl+C to copy page title text is working.

@mcgradycchen
Copy link
Author

Update

The error message in developer console

TypeError: Cannot read properties of undefined (reading 'write')
at a.writeToClipboard (index.js:169:35)
at async a.copySlice (index.js:106:13)

@EYHN
Copy link
Member

EYHN commented Feb 29, 2024

The error message was helpful and we will investigate the issue.

@EYHN
Copy link
Member

EYHN commented Feb 29, 2024

It seems that we cannot write to your clipboard because of the non-https environment.

@mcgradycchen
Copy link
Author

It seems that we cannot write to your clipboard because of the non-https environment.

@EYHN yes, it is http environment. Is it a must to enable https ?

@mcgradycchen
Copy link
Author

mcgradycchen commented Feb 29, 2024

https://stackoverflow.com/questions/51805395/navigator-clipboard-is-undefined
OK, by the above link, it looks like I have to enable https.

@EYHN thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants