Browse Source

Merge pull request #271 from deanshub/nissix-optionalchaining

Optional chaining enhancement
pull/272/head
Cian Butler 4 years ago
committed by GitHub
parent
commit
87bd922fdd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/client/copyToClipboard.ts

2
src/client/copyToClipboard.ts

@ -1,6 +1,6 @@
// NOTE text selection on double click or select
export function copySelected(text: string): boolean {
if (window.clipboardData && window.clipboardData.setData) {
if (window.clipboardData?.setData) {
window.clipboardData.setData('Text', text);
return true;
}

Loading…
Cancel
Save