mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-27 19:13:44 +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 */
|
/* calculate common used values */
|
||||||
init() {
|
init() {
|
||||||
let urlParts = this.specUrl ? urlParse(urlResolve(window.location.href, this.specUrl)) : {
|
let urlParts = this.specUrl ? urlParse(urlResolve(window.location.href, this.specUrl)) : {
|
||||||
protocol: undefined,
|
protocol: window.location.protocol,
|
||||||
host: undefined
|
host: window.location.host
|
||||||
};
|
};
|
||||||
let schemes = this._schema.schemes;
|
let schemes = this._schema.schemes;
|
||||||
let protocol;
|
let protocol;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user