webNavigation.getFrame may return null on overridden pages, fix a3401b05
This commit is contained in:
parent
54ab65989d
commit
d32ad30f8f
|
@ -136,7 +136,7 @@ function getTabRealURL(tab) {
|
|||
resolve(tab.url);
|
||||
} else {
|
||||
chrome.webNavigation.getFrame({tabId: tab.id, frameId: 0, processId: -1}, frame => {
|
||||
frame && resolve(frame.url);
|
||||
resolve(frame && frame.url || '');
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user