mirror of
https://github.com/bitwarden/browser
synced 2025-12-23 19:53:43 +00:00
Direct download for send (#243)
* Remove Get file capability This needs to be removed because the SendFileResponse no longer contains a url to download the file from. Instead, a GetDownloadLink method must be used. That method increments access count, which is not desirable for the owner of the Send. The cleanest approach is to remove the capability, which also matches Web client's behavior * jslib updates * Use GetDownloadData method to receive download Url * Update jslib
This commit is contained in:
@@ -143,7 +143,7 @@ export class Main {
|
||||
this.policyService);
|
||||
this.totpService = new TotpService(this.storageService, this.cryptoFunctionService);
|
||||
this.importService = new ImportService(this.cipherService, this.folderService, this.apiService,
|
||||
this.i18nService, this.collectionService);
|
||||
this.i18nService, this.collectionService, this.platformUtilsService);
|
||||
this.exportService = new ExportService(this.folderService, this.cipherService, this.apiService);
|
||||
this.authService = new AuthService(this.cryptoService, this.apiService, this.userService, this.tokenService,
|
||||
this.appIdService, this.i18nService, this.platformUtilsService, this.messagingService,
|
||||
@@ -188,7 +188,7 @@ export class Main {
|
||||
}
|
||||
|
||||
private async init() {
|
||||
this.storageService.init();
|
||||
await this.storageService.init();
|
||||
this.containerService.attachToWindow(global);
|
||||
await this.environmentService.setUrlsFromStorage();
|
||||
// Dev Server URLs. Comment out the line above.
|
||||
|
||||
Reference in New Issue
Block a user