mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-02 08:40:08 +01:00
stringify object
This commit is contained in:
parent
bcb7a08065
commit
2e609331f3
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user