Skip to content

Commit

Permalink
fix(iframe): Add optional chaining on unsafe-type element (#2092)
Browse files Browse the repository at this point in the history
  • Loading branch information
Azurewarth0920 authored Feb 4, 2024
1 parent b954f66 commit 417e5ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-backend-core/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async function createAppRecord (options: AppRecordOptions, backend: DevtoolsBack
instanceMap: new Map(),
rootInstance,
perfGroupIds: new Map(),
iframe: isBrowser && document !== el.ownerDocument ? el.ownerDocument?.location?.pathname : null,
iframe: isBrowser && document !== el?.ownerDocument ? el?.ownerDocument?.location?.pathname : null,
meta: options.meta ?? {},
}

Expand Down

0 comments on commit 417e5ef

Please sign in to comment.