Copy Button in Code Block doesn't work
ha0min opened this issue · 2 comments
ha0min commented
Describe
I'm having trouble using the Copy Button feature in code blocks on PandoraAI. Whenever I try to click on it, nothing happens. I've tried this on multiple browsers and devices, but the issue persists.
To Reproduce
Steps to reproduce the behavior:
- Navigate to any repository on GitHub that contains code blocks.
- Click on the Copy Button in any code block.
- Observe that nothing happens.
- Console log error.
Expected behavior
Clicking on the Copy Button should copy the code from the code block to the clipboard.
Screenshots
Console log error as:
Uncaught TypeError: Cannot read properties of undefined (reading 'writeText')
at HTMLDocument.copyButtonListener
Desktop:
- OS: MacOS
- Browser: Edge
- Version 111.0.1661.27 Dev(x86_64)
waylaidwanderer commented
ha0min commented
Yes, I realized the server was deployed over HTTP instead of HTTPS, thanks!