stringify object

This commit is contained in:
Kyle Spearrin 2019-08-21 20:45:23 -04:00
parent bcb7a08065
commit 2e609331f3
1 changed files with 2 additions and 2 deletions

View File

@ -187,11 +187,11 @@ export class BrowserApi {
} else {
data = Utils.fromBufferToB64(blobData);
}
SafariApp.sendMessageToApp('downloadFile', {
SafariApp.sendMessageToApp('downloadFile', JSON.stringify({
data: data,
type: type,
fileName: fileName,
}, true);
}), true);
} else {
const blob = new Blob([blobData], blobOptions);
if (navigator.msSaveOrOpenBlob) {