mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
stringify object
This commit is contained in:
@@ -187,11 +187,11 @@ export class BrowserApi {
|
|||||||
} else {
|
} else {
|
||||||
data = Utils.fromBufferToB64(blobData);
|
data = Utils.fromBufferToB64(blobData);
|
||||||
}
|
}
|
||||||
SafariApp.sendMessageToApp('downloadFile', {
|
SafariApp.sendMessageToApp('downloadFile', JSON.stringify({
|
||||||
data: data,
|
data: data,
|
||||||
type: type,
|
type: type,
|
||||||
fileName: fileName,
|
fileName: fileName,
|
||||||
}, true);
|
}), true);
|
||||||
} else {
|
} else {
|
||||||
const blob = new Blob([blobData], blobOptions);
|
const blob = new Blob([blobData], blobOptions);
|
||||||
if (navigator.msSaveOrOpenBlob) {
|
if (navigator.msSaveOrOpenBlob) {
|
||||||
|
|||||||
Reference in New Issue
Block a user