From 3b47c88904ce1ef2864749aeadd987d0df39f125 Mon Sep 17 00:00:00 2001 From: Jozef Mrazek Date: Wed, 24 Apr 2024 14:03:04 +0200 Subject: [PATCH] Provide option for seconday url --- src/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index f28b7e5a..d65d90cb 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -39,7 +39,10 @@ const App = () => { if ( // https://example.com !pncUrl.startsWith(window.location.origin) && - process.env.REACT_APP_WEB_UI_URL !== window.location.origin && + !( + process.env.REACT_APP_WEB_UI_URL !== window.location.origin || + process.env.REACT_APP_WEB_SECONDARY_UI_URL !== window.location.origin + ) && // example.com window.location.hostname !== 'localhost' ) {