Skip to content

Commit

Permalink
fix(canvas): Fix missing addWindow call when `enableManualSnapshot=…
Browse files Browse the repository at this point in the history
…=true`

Need to move this up so window is added in the case where we have manual snapshots.
  • Loading branch information
billyvg committed Jun 13, 2024
1 parent aa0d637 commit 6a1de0a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export class CanvasManager implements CanvasManagerInterface {
) {
this.worker = this.initFPSWorker();
}
this.addWindow(win);
if (options.enableManualSnapshot) {
return;
}
Expand All @@ -194,7 +195,6 @@ export class CanvasManager implements CanvasManagerInterface {
);
}
})();
this.addWindow(win);
}

public addWindow(win: IWindow) {
Expand Down

0 comments on commit 6a1de0a

Please sign in to comment.