Skip to content

Commit

Permalink
Added API method in window - captureWindow (#137)
Browse files Browse the repository at this point in the history
* Added API method in window - captureWindow

* Update window.ts

---------

Co-authored-by: Shalitha Suranga <[email protected]>
  • Loading branch information
WannaCry016 and shalithasuranga authored Jan 2, 2025
1 parent ab8d212 commit 1364ed7
Show file tree
Hide file tree
Showing 2 changed files with 1,255 additions and 136 deletions.
4 changes: 4 additions & 0 deletions src/api/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,3 +300,7 @@ export function create(url: string, options?: WindowOptions): Promise<void> {
});
});
};

export function snapshot(path: string): Promise<void> {
return sendMessage('window.snapshot', { path });
}
Loading

0 comments on commit 1364ed7

Please sign in to comment.