change format of downloadFile message

This commit is contained in:
Kyle Spearrin 2019-08-23 09:55:59 -04:00
parent 0c76b0b8b5
commit c132ba1642
1 changed files with 3 additions and 6 deletions

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);