Update clipboard.ts

This commit is contained in:
Marcos Rodriguez Velez 2024-11-10 11:53:24 -04:00
parent 99b7d29d1c
commit 5dd5002950

View file

@ -30,7 +30,7 @@ export const getClipboardContent = async (): Promise<string | undefined> => {
try {
const isAllowed = await isReadClipboardAllowed();
if (!isAllowed) return undefined;
const hasString = await Clipboard.hasString();
return hasString ? await Clipboard.getString() : undefined;
} catch (error) {