Skip to content

Commit

Permalink
fix(clipboard): reject error
Browse files Browse the repository at this point in the history
  • Loading branch information
aesteves60 authored and dpellier committed Aug 3, 2023
1 parent 7f0c918 commit d80f651
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ export function writeOnClipboard(textToWrite: string): Promise<void> {
return navigator.clipboard.writeText(textToWrite);
} catch (error) {
console.error(error);
return Promise.resolve();
return Promise.reject(error);
}
}

0 comments on commit d80f651

Please sign in to comment.