Skip to content

Commit 3664032

Browse files
authored
Update src/app-bridge.ts
1 parent 59c01a4 commit 3664032

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/app-bridge.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,10 @@ export class AppBridge extends Protocol<Request, Notification, Result> {
267267
* @example
268268
* ```typescript
269269
* bridge.onsizechange = ({ width, height }) => {
270-
* if (width && height) {
270+
* if (width != null) {
271271
* iframe.style.width = `${width}px`;
272+
* }
273+
* if (height != null) {
272274
* iframe.style.height = `${height}px`;
273275
* }
274276
* };

0 commit comments

Comments
 (0)