Skip to content

Commit

Permalink
Provide option for seconday url
Browse files Browse the repository at this point in the history
  • Loading branch information
jomrazek committed Apr 25, 2024
1 parent 7446fdb commit 3b47c88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
) {
Expand Down

0 comments on commit 3b47c88

Please sign in to comment.