mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
The Clipboard API only exists in a secure context, so over plain HTTP the copy button on a hash chip always failed. Because the displayed value is abbreviated in JavaScript, the rest of the hash was never in the DOM either, leaving the full value unreachable on any HTTP install. Clicking a chip now reveals the full value as selectable text whenever a copy cannot land, so Ctrl+C works as a fallback. On HTTP the click no longer attempts the doomed copy, so the misleading error toast is gone. Behaviour over HTTPS is unchanged apart from revealing when a copy throws. The firmware tab only ever showed the MD5, as an unselectable chip with no copy affordance, while the stored CRC and SHA-1 were never displayed. All three now render as copyable chips, matching the ROM files tab. Fixes #4082 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>