mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-15 20:11:30 +01:00
check tab
This commit is contained in:
parent
fcb7972fca
commit
7ce6634120
@ -402,6 +402,10 @@ function messageTab(tabId, command, data, callback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function collectPageDetailsForContentScript(tab, sender) {
|
function collectPageDetailsForContentScript(tab, sender) {
|
||||||
|
if (!tab || !tab.id) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
chrome.tabs.sendMessage(tab.id, { command: 'collectPageDetails', tab: tab, sender: sender }, function () {
|
chrome.tabs.sendMessage(tab.id, { command: 'collectPageDetails', tab: tab, sender: sender }, function () {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user