support for bitwardenFrameId in messages

This commit is contained in:
Kyle Spearrin 2019-08-16 14:34:59 -04:00
parent 838667c381
commit 7a977ebc1e
1 changed files with 3 additions and 0 deletions

View File

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