From d32ad30f8f679b32d7cd119b62699f26027b1386 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 26 Mar 2017 00:14:41 +0300 Subject: [PATCH] webNavigation.getFrame may return null on overridden pages, fix a3401b05 --- messaging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messaging.js b/messaging.js index 590008be..40f9d113 100644 --- a/messaging.js +++ b/messaging.js @@ -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 || ''); }); } });