mirror of https://github.com/Ombi-app/Ombi
commit
bc697a03e9
@ -1,6 +1,6 @@
|
|||||||
export function getBaseLocation() {
|
export function getBaseLocation() {
|
||||||
debugger;
|
debugger;
|
||||||
let paths: string[] = location.pathname.split('/').splice(1, 1);
|
let paths: string[] = location.pathname.split('/').splice(1, 1);
|
||||||
let basePath: string = (paths && paths[0]) || 'discover'; // Default: discover
|
let basePath: string = (paths && paths[0] ? paths[0] : "");
|
||||||
return '/' + basePath;
|
return '/' + basePath;
|
||||||
}
|
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue