Skip to content

Commit 3b47c88

Browse files
committed
Provide option for seconday url
1 parent 7446fdb commit 3b47c88

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ const App = () => {
3939
if (
4040
// https://example.com
4141
!pncUrl.startsWith(window.location.origin) &&
42-
process.env.REACT_APP_WEB_UI_URL !== window.location.origin &&
42+
!(
43+
process.env.REACT_APP_WEB_UI_URL !== window.location.origin ||
44+
process.env.REACT_APP_WEB_SECONDARY_UI_URL !== window.location.origin
45+
) &&
4346
// example.com
4447
window.location.hostname !== 'localhost'
4548
) {

0 commit comments

Comments
 (0)