Files
zeekayandHanzo Dev 32a732ba95 fix(lib): say what the clipboard hook checks, as it has always checked it
`Boolean(typeof ClipboardItem && navigator.clipboard.write)` looks like a
check for ClipboardItem, but `typeof` always yields a non-empty string, so
the expression was always navigator.clipboard.write — ESLint 10's
no-constant-binary-expression says so. The check now says only that, which
is what it has always evaluated to, and a comment records why that is
enough: without ClipboardItem, handleClipboardApiCopy throws inside its own
try and falls back to writeText. The ternary used as a statement becomes an
if, as typescript-eslint 8's no-unused-expressions asks.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-19 05:07:02 -07:00
..