feat: update Nebular to 4.1.2 (#5451)

This commit is contained in:
Sergey Andrievskiy 2019-07-15 14:14:04 +03:00 committed by GitHub
parent 4febf1902c
commit a2e93f9376
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 728 additions and 1109 deletions

View file

@ -114,11 +114,8 @@ export class RoomSelectorComponent implements OnInit, OnDestroy {
}
getUrlPath(id: string) {
let baseHref = this.locationStrategy.getBaseHref();
if (baseHref.endsWith('')) {
baseHref = baseHref.slice(0, -1);
}
const path = this.location.path();
const baseHref = this.locationStrategy.getBaseHref().replace(/\/$/, '');
const path = this.location.path().replace(/\/$/, '');
return `url(${baseHref}${path}${id})`;
}