mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
committed by
Kyle Spearrin
parent
49d3f22704
commit
a5476f12aa
@@ -477,7 +477,7 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
fd.append('data', blob, encFileName.encryptedString);
|
||||
} catch (e) {
|
||||
if (Utils.isNode && !Utils.isBrowser) {
|
||||
fd.append('data', new Buffer(encData) as any, {
|
||||
fd.append('data', Buffer.from(encData) as any, {
|
||||
filepath: encFileName.encryptedString,
|
||||
contentType: 'application/octet-stream',
|
||||
} as any);
|
||||
@@ -526,7 +526,7 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
fd.append('data', blob, encFileName.encryptedString);
|
||||
} catch (e) {
|
||||
if (Utils.isNode && !Utils.isBrowser) {
|
||||
fd.append('data', new Buffer(encData) as any, {
|
||||
fd.append('data', Buffer.from(encData) as any, {
|
||||
filepath: encFileName.encryptedString,
|
||||
contentType: 'application/octet-stream',
|
||||
} as any);
|
||||
|
||||
Reference in New Issue
Block a user