mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(inspector): Fix --debug-brk issue with Inspector (#5460)
This commit is contained in:
@@ -27,6 +27,10 @@ function getViewById(nodeId: number): ViewBase {
|
|||||||
|
|
||||||
export function getDocument() {
|
export function getDocument() {
|
||||||
const topMostFrame = frameTopmost();
|
const topMostFrame = frameTopmost();
|
||||||
|
if (!topMostFrame) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
topMostFrame.ensureDomNode();
|
topMostFrame.ensureDomNode();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user