Submodule jslib contains modified content diff --git a/jslib/src/angular/components/register.component.ts b/jslib/src/angular/components/register.component.ts index 6149f83..005d528 100644 --- a/jslib/src/angular/components/register.component.ts +++ b/jslib/src/angular/components/register.component.ts @@ -69,6 +69,12 @@ export class RegisterComponent { } async submit() { + if (typeof crypto.subtle === 'undefined') { + this.platformUtilsService.showToast('error', "This browser requires HTTPS to use the web vault", + "Check the bitwarden_rs wiki for details on how to enable it"); + return; + } + if (!this.acceptPolicies && this.showTerms) { this.platformUtilsService.showToast('error', this.i18nService.t('errorOccurred'), this.i18nService.t('acceptPoliciesError')); diff --git a/src/404.html b/src/404.html index dae3951b..b4b3e39b 100644 --- a/src/404.html +++ b/src/404.html @@ -45,10 +45,10 @@

You can return to the web vault, check our status page - or contact us.

+ or contact us.

diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 9c5b6b5d..287338d2 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -140,6 +140,10 @@ export class AppComponent implements OnDestroy, OnInit { } break; case 'showToast': + if (typeof message.text === "string" && typeof crypto.subtle === 'undefined') { + message.title="This browser requires HTTPS to use the web vault"; + message.text="Check the bitwarden_rs wiki for details on how to enable it"; + } this.showToast(message); break; case 'analyticsEventTrack': diff --git a/src/app/layouts/footer.component.html b/src/app/layouts/footer.component.html index b001b9e3..c1bd2ac8 100644 --- a/src/app/layouts/footer.component.html +++ b/src/app/layouts/footer.component.html @@ -1,7 +1,7 @@