From 3ef992c1af8efab7314cf63672898914bcaa599b Mon Sep 17 00:00:00 2001 From: artrejo Date: Thu, 20 Jan 2022 17:53:46 -0800 Subject: [PATCH] Fix build cont. --- src/Juno/JunoClient.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Juno/JunoClient.ts b/src/Juno/JunoClient.ts index 7725e886e..3df4dcc81 100644 --- a/src/Juno/JunoClient.ts +++ b/src/Juno/JunoClient.ts @@ -1,5 +1,5 @@ import ko from "knockout"; -import { allowedJunoOrigins, validateEndpoint } from "Utils/EndpointValidation"; +import { validateEndpoint } from "Utils/EndpointValidation"; import { GetGithubClientId } from "Utils/GitHubUtils"; import { HttpHeaders, HttpStatusCodes } from "../Common/Constants"; import { configContext } from "../ConfigContext"; @@ -485,7 +485,7 @@ export class JunoClient { // public for tests public static getJunoEndpoint(): string { const junoEndpoint = userContext.features.junoEndpoint ?? configContext.JUNO_ENDPOINT; - if (validateEndpoint(junoEndpoint, allowedJunoOrigins)) { + if (validateEndpoint(junoEndpoint, configContext.allowedJunoOrigins)) { const error = `${junoEndpoint} not allowed as juno endpoint`; console.error(error); throw new Error(error);