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