mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-30 13:03:53 +01:00
check for no page on tab
This commit is contained in:
parent
729380c0ec
commit
64a27e5fd9
@ -97,6 +97,10 @@ class BrowserApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const t = win.tabs[tab.index];
|
const t = win.tabs[tab.index];
|
||||||
|
if (!t.page) {
|
||||||
|
return Promise.reject('No page on this tab.');
|
||||||
|
}
|
||||||
|
|
||||||
t.page.dispatchMessage('bitwarden', obj);
|
t.page.dispatchMessage('bitwarden', obj);
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user