1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-18 11:05:41 +01:00

change format of downloadFile message

This commit is contained in:
Kyle Spearrin 2019-08-23 09:55:59 -04:00
parent 0c76b0b8b5
commit c132ba1642

View File

@ -183,12 +183,9 @@ export class BrowserApi {
data = Utils.fromBufferToB64(blobData);
}
SafariApp.sendMessageToApp('downloadFile', JSON.stringify({
command: 'downloaderPageData',
data: {
blobData: data,
blobOptions: blobOptions,
fileName: fileName,
},
blobData: data,
blobOptions: blobOptions,
fileName: fileName,
}), true);
} else {
const blob = new Blob([blobData], blobOptions);