Closed iHiD closed 3 years ago
Do you mean when rendering it like:
ReactComponents::Common::CopyToClipboardButton.new("exercism download --exercise=pattern")
?
When rendering it like that, it works for me in Chrome and Edge.
The clipboard API only works in secure contexts (https with valid certificate, localhost).
I've just checked, and this does indeed now work on exercism.lol now that it's HTTPS.
When rendering this via the Bootloader,
navigator
is alwaysundefined
for me here so the component doesn't render.https://github.com/exercism/v3-website/blob/7615ccf8b288909e4486e930155ac5c2e1915664/app/javascript/components/common/CopyToClipboardButton.tsx#L12