mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
read chrome.runtime.lastError
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user