Repository navigation
Commit 8d8f0d1
committed
fix(ui): add execCommand fallback for copy button in non-secure HTTP contexts
- Fix copy button not working when accessing opencode over HTTP
- Add try/catch error handling to prevent silent failures
- Fallback to document.execCommand when navigator.clipboard is unavailable
- Hide temporary textarea element to avoid UI glitches
Fixes anomalyco#148031 parent 288eb04 commit 8d8f0d1
1 file changed
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1743 | 1743 | | |
1744 | 1744 | | |
1745 | 1745 | | |
1746 | | - | |
1747 | | - | |
1748 | | - | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
1749 | 1767 | | |
1750 | 1768 | | |
1751 | 1769 | | |
| |||
0 commit comments