Skip to content

Commit

Permalink
fix: constructor size parameter (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen authored Jun 25, 2022
1 parent c2f41d8 commit a1293a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ export class Webview {
Number(debugOrHandle),
null,
);
this.size = { width: 1024, height: 768, hint: SizeHint.NONE };

if (size !== undefined) {
this.size = size;
}
}

/**
Expand Down

0 comments on commit a1293a6

Please sign in to comment.