()
| 345 | } |
| 346 | |
| 347 | private getServerBase() { |
| 348 | const {protocol, hostname, port} = this.platformLocation; |
| 349 | const baseHref = this.locationStrategy.getBaseHref(); |
| 350 | let url = `${protocol}//${hostname}${port ? ':' + port : ''}${baseHref || '/'}`; |
| 351 | return url.endsWith('/') ? url : url + '/'; |
| 352 | } |
| 353 | |
| 354 | private parseAppUrl(url: string) { |
| 355 | if (DOUBLE_SLASH_REGEX.test(url)) { |
no test coverage detected