1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +00:00

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

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() {