1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-07-04 11:55:58 +02:00

[fix] File downloads in Safari (#3121)

This commit is contained in:
Addison Beck 2022-07-15 13:54:11 -04:00 committed by GitHub
parent 6a30f37ba9
commit eb1cd9ff2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,9 +17,7 @@ export class BrowserFileDownloadService implements FileDownloadService {
if (builder.blobOptions.type === "text/plain" && typeof request.blobData === "string") {
data = request.blobData;
} else {
builder.blob.arrayBuffer().then((buf) => {
data = Utils.fromBufferToB64(buf);
});
data = Utils.fromBufferToB64(request.blobData as ArrayBuffer);
}
SafariApp.sendMessageToApp(
"downloadFile",