Browse Source

Allow firefox relay service in generator (#1723)

* Allow firefox relay service in generator

* Update generator.component.ts

* Update generator.component.ts

* make pretty
PS-589-add-2fa-new-device-login-settings-flag
Kyle Spearrin 4 years ago committed by GitHub
parent
commit
52406bc969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      src/app/tools/generator.component.ts

12
src/app/tools/generator.component.ts

@ -40,11 +40,13 @@ export class GeneratorComponent extends BaseGeneratorComponent { @@ -40,11 +40,13 @@ export class GeneratorComponent extends BaseGeneratorComponent {
route,
window
);
// Cannot use Firefox Relay on the web vault yet due to CORS issues with Firefox Relay API
this.forwardOptions.splice(
this.forwardOptions.findIndex((o) => o.value === "firefoxrelay"),
1
);
if (platformUtilsService.isSelfHost()) {
// Cannot use Firefox Relay on self hosted web vaults due to CORS issues with Firefox Relay API
this.forwardOptions.splice(
this.forwardOptions.findIndex((o) => o.value === "firefoxrelay"),
1
);
}
}
async history() {

Loading…
Cancel
Save