Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion utils/clipboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
document.body.appendChild(textArea);

textArea.focus();
textArea.select();
const selected = textArea.select();
if (!selected) return false;

Check failure on line 14 in utils/clipboard.ts

View workflow job for this annotation

GitHub Actions / Format · Lint · Typecheck · Test

An expression of type 'void' cannot be tested for truthiness.

Check failure on line 14 in utils/clipboard.ts

View workflow job for this annotation

GitHub Actions / Format · Lint · Typecheck · Test

An expression of type 'void' cannot be tested for truthiness.

Check failure on line 14 in utils/clipboard.ts

View workflow job for this annotation

GitHub Actions / Format · Lint · Typecheck · Test

An expression of type 'void' cannot be tested for truthiness.

return document.execCommand('copy');
} catch {
Expand Down
Loading