From d466f157fc07d6aadc0e8d8632ddca14d4b8c0c4 Mon Sep 17 00:00:00 2001 From: zucher Date: Tue, 16 Jan 2018 10:37:32 +0100 Subject: [PATCH] Fix compilation failure --- lib/utils/spec-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/spec-manager.ts b/lib/utils/spec-manager.ts index f8053d3d..fb4c3e30 100644 --- a/lib/utils/spec-manager.ts +++ b/lib/utils/spec-manager.ts @@ -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) {