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

Select Sharing not working #156

Open
seanmars opened this issue Jan 14, 2025 · 4 comments
Open

Select Sharing not working #156

seanmars opened this issue Jan 14, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@seanmars
Copy link

When click the Select Sharing button will get the error:

Uncaught TypeError: Cannot read properties of undefined (reading 'writeText')
@brendan-kellam brendan-kellam added the bug Something isn't working label Jan 14, 2025
@brendan-kellam
Copy link
Contributor

I did a quick google search, and came across this: https://stackoverflow.com/a/71876238

Are you running Sourcebot over http (instead of https)? Maybe check that window.isSecureContext is true in your devtools console

@seanmars
Copy link
Author

seanmars commented Jan 15, 2025

I did a quick google search, and came across this: https://stackoverflow.com/a/71876238

Are you running Sourcebot over http (instead of https)? Maybe check that window.isSecureContext is true in your devtools console

You are right, I use HTTP instead of HTTPS, is there any way to solve this problem if I can only use HTTP?

@brendan-kellam
Copy link
Contributor

Unfortunately probably not with the Clipboard apis since this is a browser level thing that we don't control. Is there a reason you can only use http and not https? Do you have Sourcebot deployed to an environment or just using it locally?

@seanmars
Copy link
Author

seanmars commented Jan 15, 2025

Unfortunately probably not with the Clipboard apis since this is a browser level thing that we don't control. Is there a reason you can only use http and not https? Do you have Sourcebot deployed to an environment or just using it locally?

Yes, I just using it locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants