Allow firefox relay service in generator (#1723)

* Allow firefox relay service in generator

* Update generator.component.ts

* Update generator.component.ts

* make pretty
This commit is contained in:
Kyle Spearrin 2022-06-01 20:33:06 -04:00 committed by GitHub
parent d7dd2435fc
commit 52406bc969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 5 deletions

View File

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