mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
check for no page on tab
This commit is contained in:
@@ -97,6 +97,10 @@ class BrowserApi {
|
||||
}
|
||||
|
||||
const t = win.tabs[tab.index];
|
||||
if (!t.page) {
|
||||
return Promise.reject('No page on this tab.');
|
||||
}
|
||||
|
||||
t.page.dispatchMessage('bitwarden', obj);
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user