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

Fix copy button on HTTP sites #814

Open
jennydaman opened this issue Jan 30, 2023 · 0 comments
Open

Fix copy button on HTTP sites #814

jennydaman opened this issue Jan 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jennydaman
Copy link
Collaborator

jennydaman commented Jan 30, 2023

In #782 a feature was added which depends on the navigator API. However, this API is only available on "secure" sites: either when the site is on localhost or when HTTPS is being used.

The bug can be reproduced by running ChRIS_ui locally but accessing it from a non-localhost URL, e.g. using your computer's hostname instead. You'll get the error

Uncaught TypeError: navigator.clipboard is undefined

A workaround is described here: https://stackoverflow.com/a/65996386

@jennydaman jennydaman added the bug Something isn't working label Feb 2, 2023
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

1 participant