Fix compilation failure

This commit is contained in:
zucher 2018-01-16 10:37:32 +01:00 committed by GitHub
parent 419788b94e
commit d466f157fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ 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" : null, "host": null };
let schemes = this._schema.schemes; let schemes = this._schema.schemes;
let protocol; let protocol;
if (!schemes || !schemes.length) { if (!schemes || !schemes.length) {