mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 06:04:56 +03:00
Update spec-manager.ts
This commit is contained in:
parent
dbbcfd4e2b
commit
beed140297
|
@ -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.locatin.host
|
||||||
};
|
};
|
||||||
let schemes = this._schema.schemes;
|
let schemes = this._schema.schemes;
|
||||||
let protocol;
|
let protocol;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user