tauri-apps / tauri-apps/plugins-workspace
[clipboard] readText() returns 400 when empty
Open
plugin: clipboard-manager
status: upstream
type: question
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 602
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 9
Description
I know this was intentional, because there's an error message, but should `readText()` return nothing when the clipboard is empty instead of throwing a 400? Or, perhaps there could be an alternative way to check the clipboard status that doesn't error.
I have an app that checks for something in the clipboard on window focus, and these console errors are difficult to see around.

Contributor guide
Assessment
This issue has not been assessed yet.