diff --git a/src/popup/app/vault/vaultViewCipherController.js b/src/popup/app/vault/vaultViewCipherController.js index e46d688f1f..942fe05cc7 100644 --- a/src/popup/app/vault/vaultViewCipherController.js +++ b/src/popup/app/vault/vaultViewCipherController.js @@ -161,7 +161,6 @@ angular cryptoService.getOrgKey($scope.cipher.organizationId).then(function (key) { return cryptoService.decryptFromBytes(req.response, key); }).then(function (decBuf) { - var blob = new Blob([decBuf]); BrowserApi.downloadFile($window, decBuf, null, attachment.fileName); $timeout(function () { diff --git a/src/services/browserPlatformUtils.service.ts b/src/services/browserPlatformUtils.service.ts index 7c0fad2dc3..51de73792b 100644 --- a/src/services/browserPlatformUtils.service.ts +++ b/src/services/browserPlatformUtils.service.ts @@ -140,6 +140,18 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService return tabOpen; } + launchUri(uri: string, options?: any): void { + BrowserApi.createNewTab(uri, options && options.extensionPage === true); + } + + saveFile(win: Window, blobData: any, blobOptions: any, fileName: string): void { + BrowserApi.downloadFile(win, blobData, blobOptions, fileName); + } + + alertError(title: string, message: string): void { + // TODO + } + private sidebarViewName(): string { if ((window as any).chrome.sidebarAction && this.isFirefox()) { return 'sidebar';