Skip to content

Commit bf9a5b5

Browse files
committed
fix: fixed circular dependency.
1 parent 247f3c6 commit bf9a5b5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/client/ScreenCapture.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ export const setScreenCapture = function (): void {
9393
if (btnCapture) {
9494
btnCapture.addEventListener('click', async () => {
9595
try {
96-
await customDialog.showExportDialog();
96+
customDialog.load();
97+
98+
const img = await capture();
99+
100+
await customDialog.showExportDialog(img);
97101
} catch (err) {
98102
console.error(err);
99103
}

0 commit comments

Comments
 (0)