Add heuristic to find core address if UI is proxied

This commit is contained in:
Ingo Oppermann 2022-11-29 12:28:11 +01:00
parent 5dc24dca88
commit d7f64ccfef
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -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) {