From 0b58a31c7dde346c148aa6b694c58a43e4b4681d Mon Sep 17 00:00:00 2001 From: bkop-ds <84399410+bkop-ds@users.noreply.github.com> Date: Mon, 16 Sep 2024 10:38:22 -0400 Subject: [PATCH] update eRA --- confluence.js | 4 ++-- src/shared.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/confluence.js b/confluence.js index dc53620..d3d8b23 100644 --- a/confluence.js +++ b/confluence.js @@ -123,11 +123,11 @@ export const confluence = async () => { const loginBoxAppEpisphere = document.getElementById("loginBoxAppEpisphere"); const loginBoxAppProd = document.getElementById("loginBoxAppProd"); const loginBoxAppStage = document.getElementById("loginBoxAppStage"); - if (location.origin.match("localhost")) { + if (location.origin.match("localhost")) { loginBoxAppDev.hidden = false; document.getElementById("loginBoxDropDown").addEventListener("click", loginAppDev); }; - if (location.origin.match(applicationURLs.stage)) { + if (location.origin.match(applicationURLs.stage)) { loginBoxAppStage.hidden = false; document.getElementById("loginBoxDropDown").addEventListener("click", loginObs); }; diff --git a/src/shared.js b/src/shared.js index f255685..bc78d70 100644 --- a/src/shared.js +++ b/src/shared.js @@ -257,7 +257,7 @@ export const storeAccessTokenERa = async () => { let parms = searchParms(); if (parms.code) { //exchange code for authorization token - if (location.origin.match("localhost")) { + if (location.origin.match("localhost") || location.origin.match(applicationURLs.epi)) { let clt = {}; clt.client_id = 'ff775e46-ec74-46a3-b19f-ee2c60e8cf11'; clt.server_id = '86514167-daf2-4d14-8b9e-84f895190f3f';