From 3b008a1215f87f9b848397e8d68dfd4ba02b39e0 Mon Sep 17 00:00:00 2001 From: Homa Wong Date: Mon, 10 Sep 2018 07:50:18 -0700 Subject: [PATCH] fix: ip addresses not supported as host (#616) * Update spec-manager.ts * fix typo --- lib/utils/spec-manager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/spec-manager.ts b/lib/utils/spec-manager.ts index 08f31b68..a8fe674a 100644 --- a/lib/utils/spec-manager.ts +++ b/lib/utils/spec-manager.ts @@ -67,8 +67,8 @@ export class SpecManager { /* calculate common used values */ init() { let urlParts = this.specUrl ? urlParse(urlResolve(window.location.href, this.specUrl)) : { - protocol: undefined, - host: undefined + protocol: window.location.protocol, + host: window.location.host }; let schemes = this._schema.schemes; let protocol;