1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-07 09:31:31 +01:00

support for bitwardenFrameId in messages

This commit is contained in:
Kyle Spearrin 2019-08-16 14:34:59 -04:00
parent 838667c381
commit 7a977ebc1e

View File

@ -107,6 +107,9 @@ export class BrowserApi {
}); });
}); });
} else if (BrowserApi.isSafariApi) { } else if (BrowserApi.isSafariApi) {
if (options != null && options.frameId != null && obj.bitwardenFrameId == null) {
obj.bitwardenFrameId = options.frameId;
}
await SafariApp.sendMessageToApp('tabs_message', JSON.stringify({ await SafariApp.sendMessageToApp('tabs_message', JSON.stringify({
tab: tab, tab: tab,
obj: JSON.stringify(obj), obj: JSON.stringify(obj),