mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 21:54:53 +03:00
Fix compilation failure
This commit is contained in:
parent
419788b94e
commit
d466f157fc
|
@ -66,7 +66,7 @@ export class SpecManager {
|
|||
|
||||
/* calculate common used values */
|
||||
init() {
|
||||
let urlParts = this.specUrl ? urlParse(urlResolve(window.location.href, this.specUrl)) : {};
|
||||
let urlParts = this.specUrl ? urlParse(urlResolve(window.location.href, this.specUrl)) : { "protocol" : null, "host": null };
|
||||
let schemes = this._schema.schemes;
|
||||
let protocol;
|
||||
if (!schemes || !schemes.length) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user