mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-27 11:03:43 +03:00
fix: ip addresses not supported as host (#616)
* Update spec-manager.ts * fix typo
This commit is contained in:
parent
dbbcfd4e2b
commit
3b008a1215
|
@ -67,8 +67,8 @@ export class SpecManager {
|
|||
/* calculate common used values */
|
||||
init() {
|
||||
let urlParts = this.specUrl ? urlParse(urlResolve(window.location.href, this.specUrl)) : {
|
||||
protocol: undefined,
|
||||
host: undefined
|
||||
protocol: window.location.protocol,
|
||||
host: window.location.host
|
||||
};
|
||||
let schemes = this._schema.schemes;
|
||||
let protocol;
|
||||
|
|
Loading…
Reference in New Issue
Block a user