read chrome.runtime.lastError

This commit is contained in:
Kyle Spearrin 2017-08-31 15:30:01 -04:00
parent cb7c35ad77
commit 58fc9c943c
1 changed files with 3 additions and 0 deletions

View File

@ -418,6 +418,9 @@ function collectPageDetailsForContentScript(tab, sender) {
} }
chrome.tabs.sendMessage(tab.id, { command: 'collectPageDetails', tab: tab, sender: sender }, function () { chrome.tabs.sendMessage(tab.id, { command: 'collectPageDetails', tab: tab, sender: sender }, function () {
if (chrome.runtime.lastError) {
return;
}
}); });
} }