fix(inspector): Fix --debug-brk issue with Inspector (#5460)

This commit is contained in:
Deyan Ginev
2018-02-26 11:47:24 +02:00
committed by GitHub
parent c54e069f57
commit 0b34e67699

View File

@@ -27,6 +27,10 @@ function getViewById(nodeId: number): ViewBase {
export function getDocument() {
const topMostFrame = frameTopmost();
if (!topMostFrame) {
return undefined;
}
try {
topMostFrame.ensureDomNode();