mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-05 05:17:40 +02:00
[fix] File downloads in Safari (#3121)
This commit is contained in:
parent
6a30f37ba9
commit
eb1cd9ff2a
@ -17,9 +17,7 @@ export class BrowserFileDownloadService implements FileDownloadService {
|
|||||||
if (builder.blobOptions.type === "text/plain" && typeof request.blobData === "string") {
|
if (builder.blobOptions.type === "text/plain" && typeof request.blobData === "string") {
|
||||||
data = request.blobData;
|
data = request.blobData;
|
||||||
} else {
|
} else {
|
||||||
builder.blob.arrayBuffer().then((buf) => {
|
data = Utils.fromBufferToB64(request.blobData as ArrayBuffer);
|
||||||
data = Utils.fromBufferToB64(buf);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
SafariApp.sendMessageToApp(
|
SafariApp.sendMessageToApp(
|
||||||
"downloadFile",
|
"downloadFile",
|
||||||
|
Loading…
Reference in New Issue
Block a user