diff --git a/src/app/shared/services/lfx-header.service.ts b/src/app/shared/services/lfx-header.service.ts index 39614ec1..d08c086a 100644 --- a/src/app/shared/services/lfx-header.service.ts +++ b/src/app/shared/services/lfx-header.service.ts @@ -1,17 +1,17 @@ // Copyright The Linux Foundation and each contributor to CommunityBridge. // SPDX-License-Identifier: MIT -import { Injectable } from "@angular/core"; -import { AuthService } from "./auth.service"; -import { EnvConfig } from "../../config/cla-env-utils"; -import { AppSettings } from "../../config/app-settings"; +import { Injectable } from '@angular/core'; +import { AuthService } from './auth.service'; +import { EnvConfig } from '../../config/cla-env-utils'; +import { AppSettings } from '../../config/app-settings'; -const script = document.createElement("script"); -script.setAttribute("src", EnvConfig.default[AppSettings.LFX_HEADER]); +const script = document.createElement('script'); +script.setAttribute('src', EnvConfig.default[AppSettings.LFX_HEADER]); document.head.appendChild(script); @Injectable({ - providedIn: "root", + providedIn: 'root', }) export class LfxHeaderService { links: any[]; @@ -25,24 +25,24 @@ export class LfxHeaderService { setLinks() { this.links = [ { - title: "Project Login", + title: 'Project Login', url: EnvConfig.default[AppSettings.PROJECT_CONSOLE_LINK_V2], }, { - title: "CLA Manager Login", + title: 'CLA Manager Login', url: EnvConfig.default[AppSettings.CORPORATE_CONSOLE_LINK_V2], }, { - title: "Developer", + title: 'Developer', url: AppSettings.LEARN_MORE, }, ]; - const element: any = document.getElementById("lfx-header-v2"); + const element: any = document.getElementById('lfx-header-v2'); element.links = this.links; } setCallBackUrl() { - const lfHeaderEl: any = document.getElementById("lfx-header-v2"); + const lfHeaderEl: any = document.getElementById('lfx-header-v2'); if (lfHeaderEl) { lfHeaderEl.callbackurl = this.auth.auth0Options.callbackUrl; } @@ -50,7 +50,7 @@ export class LfxHeaderService { setUserInLFxHeader(): void { setTimeout(() => { - const lfHeaderEl: any = document.getElementById("lfx-header-v2"); + const lfHeaderEl: any = document.getElementById('lfx-header-v2'); if (lfHeaderEl) { this.auth.userProfile$.subscribe((data) => { if (data) {