Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
Allow firefox relay service in generator (#1723)
Browse files Browse the repository at this point in the history
* Allow firefox relay service in generator

* Update generator.component.ts

* Update generator.component.ts

* make pretty
  • Loading branch information
kspearrin authored Jun 2, 2022
1 parent d7dd243 commit 52406bc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/app/tools/generator.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 52406bc

Please sign in to comment.