mirror of https://github.com/usememos/memos.git
The CodeBlock component was refactored in v0.25.3 to use navigator.clipboard.writeText(), which requires HTTPS or localhost. This caused the copy button to fail silently for users accessing Memos over HTTP. This fix adds a fallback to the copy-to-clipboard library (already used by all other copy operations in the codebase) when the native clipboard API is unavailable or fails, ensuring the copy button works reliably in all deployment scenarios. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .gitignore | ||
| biome.json | ||
| components.json | ||
| index.html | ||
| package.json | ||
| pnpm-lock.yaml | ||
| tsconfig.json | ||
| vite.config.mts | ||