mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-22 21:21:35 +01:00
tabs_message to safari app
This commit is contained in:
parent
ec19896eab
commit
f4dbf92e66
@ -92,7 +92,7 @@ export class BrowserApi {
|
|||||||
return BrowserApi.tabSendMessage(tab, obj);
|
return BrowserApi.tabSendMessage(tab, obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
static tabSendMessage(tab: any, obj: any, options: any = null): Promise<any> {
|
static async tabSendMessage(tab: any, obj: any, options: any = null): Promise<any> {
|
||||||
if (!tab || !tab.id) {
|
if (!tab || !tab.id) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -107,7 +107,11 @@ export class BrowserApi {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else if (BrowserApi.isSafariApi) {
|
} else if (BrowserApi.isSafariApi) {
|
||||||
// TODO
|
await SafariApp.sendMessageToApp('tabs_message', JSON.stringify({
|
||||||
|
tab: tab,
|
||||||
|
obj: obj,
|
||||||
|
options: options,
|
||||||
|
}));
|
||||||
/*
|
/*
|
||||||
let t = tab.safariTab;
|
let t = tab.safariTab;
|
||||||
if (!t || !t.page) {
|
if (!t || !t.page) {
|
||||||
|
Loading…
Reference in New Issue
Block a user