Skip to content

Commit

Permalink
Add clipboard.clear()
Browse files Browse the repository at this point in the history
  • Loading branch information
shalithasuranga committed Feb 29, 2024
1 parent e42ffe8 commit 7eee5c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/clipboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ export function readText(key: string, data: string): Promise<void> {
export function writeText(data: string): Promise<string> {
return sendMessage('clipboard.writeText', { data });
};

export function clear(): Promise<void> {
return sendMessage('clipboard.clear');
};

0 comments on commit 7eee5c2

Please sign in to comment.