svelte-jsoneditor
svelte-jsoneditor copied to clipboard
navigator.clipboard is undefined on non-secured orgin (http)
i found this problem when my website is not https ,and some browser will have this error. navigator.clipboard return undefined
My action is to copy text
Ah, that's interesting. For security reasons, navigator.clipboard
is not available when you're on a non-secure connection.
I see a workaround here that may work:
- https://stackoverflow.com/questions/51805395/navigator-clipboard-is-undefined
- https://stackoverflow.com/a/33928558/1262753
The fix by @cloydlau has been published in v0.7.5
, thanks again.