()
| 1 | export function getSelectedText(): string { |
| 2 | if (typeof document.getSelection === 'function') { |
| 3 | const selection = document.getSelection(); |
| 4 | return selection?.toString() || ''; |
| 5 | } else { |
| 6 | return ''; |
| 7 | } |
| 8 | } |
no outgoing calls
no test coverage detected