Skip to content

Commit 417e5ef

Browse files
fix(iframe): Add optional chaining on unsafe-type element (#2092)
1 parent b954f66 commit 417e5ef

File tree

1 file changed

+1
-1
lines changed
  • packages/app-backend-core/src

1 file changed

+1
-1
lines changed

packages/app-backend-core/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async function createAppRecord (options: AppRecordOptions, backend: DevtoolsBack
7373
instanceMap: new Map(),
7474
rootInstance,
7575
perfGroupIds: new Map(),
76-
iframe: isBrowser && document !== el.ownerDocument ? el.ownerDocument?.location?.pathname : null,
76+
iframe: isBrowser && document !== el?.ownerDocument ? el?.ownerDocument?.location?.pathname : null,
7777
meta: options.meta ?? {},
7878
}
7979

0 commit comments

Comments
 (0)