From dd4e6ce5d9f19659f2a4b45d235c47e5041c4801 Mon Sep 17 00:00:00 2001 From: Hinton Date: Mon, 23 Nov 2020 21:31:55 +0100 Subject: [PATCH 1/2] Update jslib (PR 185) --- jslib | 2 +- src/background/main.background.ts | 2 +- src/services/browserPlatformUtils.service.ts | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/jslib b/jslib index f44e99d74d..0a73b6fca8 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit f44e99d74dc011c026525d171f7d2940b60b6587 +Subproject commit 0a73b6fca83b33573cf6ea0a41899ead34c23c46 diff --git a/src/background/main.background.ts b/src/background/main.background.ts index f5c7d7ee6c..006a4ccebf 100644 --- a/src/background/main.background.ts +++ b/src/background/main.background.ts @@ -155,7 +155,7 @@ export default class MainBackground { this.i18nService = new I18nService(BrowserApi.getUILanguage(window)); this.cryptoFunctionService = new WebCryptoFunctionService(window, this.platformUtilsService); this.cryptoService = new CryptoService(this.storageService, this.secureStorageService, - this.cryptoFunctionService); + this.cryptoFunctionService, this.platformUtilsService); this.tokenService = new TokenService(this.storageService); this.appIdService = new AppIdService(this.storageService); this.apiService = new ApiService(this.tokenService, this.platformUtilsService, diff --git a/src/services/browserPlatformUtils.service.ts b/src/services/browserPlatformUtils.service.ts index 488f0d00cd..1955a1d691 100644 --- a/src/services/browserPlatformUtils.service.ts +++ b/src/services/browserPlatformUtils.service.ts @@ -305,6 +305,10 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService return null; } + supportsSecureStorage(): boolean { + return false; + } + private isSafariExtension(): boolean { return (window as any).safariAppExtension === true; } From 2d4e1117a09bd6ea2d498ca4a6bd9c93d6c3d599 Mon Sep 17 00:00:00 2001 From: Chad Scharf <3904944+cscharf@users.noreply.github.com> Date: Mon, 23 Nov 2020 17:22:45 -0500 Subject: [PATCH 2/2] Update jslib --- jslib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jslib b/jslib index 0a73b6fca8..abb54f0073 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 0a73b6fca83b33573cf6ea0a41899ead34c23c46 +Subproject commit abb54f007305eabd77996623dd20cbe45345e82a