waylaidwanderer/PandoraAI

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:

  1. Navigate to any repository on GitHub that contains code blocks.
  2. Click on the Copy Button in any code block.
  3. Observe that nothing happens.
  4. 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:
image
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)
ha0min commented

Yes, I realized the server was deployed over HTTP instead of HTTPS, thanks!