Skip to content

Commit 0b34e67

Browse files
author
Deyan Ginev
authored
fix(inspector): Fix --debug-brk issue with Inspector (#5460)
1 parent c54e069 commit 0b34e67

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tns-core-modules/debugger/devtools-elements.common.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ function getViewById(nodeId: number): ViewBase {
2727

2828
export function getDocument() {
2929
const topMostFrame = frameTopmost();
30+
if (!topMostFrame) {
31+
return undefined;
32+
}
33+
3034
try {
3135
topMostFrame.ensureDomNode();
3236

0 commit comments

Comments
 (0)