()
| 274 | * Check if clipboard contains an image (cross-platform) |
| 275 | */ |
| 276 | export function hasClipboardImage(): boolean { |
| 277 | const platform = process.platform |
| 278 | |
| 279 | switch (platform) { |
| 280 | case 'darwin': |
| 281 | return hasImageMacOS() |
| 282 | case 'linux': |
| 283 | return hasImageLinux() |
| 284 | case 'win32': |
| 285 | return hasImageWindows() |
| 286 | default: |
| 287 | return false |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | /** |
| 292 | * Read image from clipboard and save to temp file |
no test coverage detected