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:
tidusjar 2019-03-27 11:17:36 +00:00
commit b93dea489d
2 changed files with 2 additions and 3 deletions

View file

@ -57,7 +57,6 @@ export class MyNavComponent implements OnInit {
}
public getTheme(){
debugger;
return this.theme === 'dark' ? 'active-list-item-dark' : 'active-list-item';
}

View file

@ -3,9 +3,9 @@ export function getBaseLocation() {
let paths: string[] = location.pathname.split('/').splice(1, 1);
let basePath: string = (paths && paths[0] ? paths[0] : "");
if(invalidProxies.indexOf(basePath) === -1){
return '/';
return '/' + basePath;
}
return '/' + basePath;
return '/';
}
const invalidProxies: string[] = [