Add heuristic to find core address if UI is proxied
This commit is contained in:
parent
5dc24dca88
commit
d7f64ccfef
@ -10,6 +10,9 @@ import theme from './theme';
|
||||
import RestreamerUI from './RestreamerUI';
|
||||
|
||||
let address = window.location.protocol + '//' + window.location.host;
|
||||
if (window.location.pathname.endsWith('/ui/')) {
|
||||
address += window.location.pathname.replace(/ui\/$/, '');
|
||||
}
|
||||
|
||||
const urlParams = new URLSearchParams(window.location.search.substring(1));
|
||||
if (urlParams.has('address') === true) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user