mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
maybe fixed the baseurl? pfft who the fuck knows now. Man this is the only bad thing about angular CLI
This commit is contained in:
parent
8a7ecd7955
commit
b93dea489d
2 changed files with 2 additions and 3 deletions
|
@ -57,7 +57,6 @@ export class MyNavComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
public getTheme(){
|
public getTheme(){
|
||||||
debugger;
|
|
||||||
return this.theme === 'dark' ? 'active-list-item-dark' : 'active-list-item';
|
return this.theme === 'dark' ? 'active-list-item-dark' : 'active-list-item';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,9 @@ export function getBaseLocation() {
|
||||||
let paths: string[] = location.pathname.split('/').splice(1, 1);
|
let paths: string[] = location.pathname.split('/').splice(1, 1);
|
||||||
let basePath: string = (paths && paths[0] ? paths[0] : "");
|
let basePath: string = (paths && paths[0] ? paths[0] : "");
|
||||||
if(invalidProxies.indexOf(basePath) === -1){
|
if(invalidProxies.indexOf(basePath) === -1){
|
||||||
return '/';
|
|
||||||
}
|
|
||||||
return '/' + basePath;
|
return '/' + basePath;
|
||||||
|
}
|
||||||
|
return '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
const invalidProxies: string[] = [
|
const invalidProxies: string[] = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue