1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 19:23:52 +00: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); data = Utils.fromBufferToB64(blobData);
} }
SafariApp.sendMessageToApp('downloadFile', JSON.stringify({ SafariApp.sendMessageToApp('downloadFile', JSON.stringify({
command: 'downloaderPageData', blobData: data,
data: { blobOptions: blobOptions,
blobData: data, fileName: fileName,
blobOptions: blobOptions,
fileName: fileName,
},
}), true); }), true);
} else { } else {
const blob = new Blob([blobData], blobOptions); const blob = new Blob([blobData], blobOptions);