Fix WebCRT copy/paste on HTTP LAN by falling back off Clipboard API.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-06 11:02:10 +08:00
parent 4ea3b737f2
commit ba33ab5c4f
6 changed files with 227 additions and 40 deletions

View file

@ -1334,7 +1334,11 @@ const en = {
copy: "Copy",
paste: "Paste",
pasteEmpty: "Clipboard is empty",
pasteFailed: "Cannot read clipboard (try Ctrl+Shift+V or check browser permission)",
pasteFailed: "Cannot read clipboard (on HTTP use the paste box, or Ctrl+V)",
pasteBridgeHint:
"This page is not HTTPS, so the browser blocks clipboard reads. Press Ctrl+V in this box to send text to the terminal.",
pasteBridgePh: "Press Ctrl+V here…",
pasteBridgeCancel: "Cancel",
clear: "Clear",
pasting: "Pasting {{done}}/{{total}} lines…",
wsError: "[WebSocket error]",