Skip to content

Commit 0c99176

Browse files
committed
fix: reading pathname of null
1 parent 75efbf1 commit 0c99176

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
@@ -72,7 +72,7 @@ async function createAppRecord (options: AppRecordOptions, backend: DevtoolsBack
7272
instanceMap: new Map(),
7373
rootInstance,
7474
perfGroupIds: new Map(),
75-
iframe: document !== el.ownerDocument ? el.ownerDocument.location.pathname : null,
75+
iframe: document !== el.ownerDocument ? el.ownerDocument?.location?.pathname : null,
7676
meta: options.meta ?? {},
7777
}
7878

0 commit comments

Comments
 (0)