From beed140297e33fa5d91157c6c96a2b08cdb36636 Mon Sep 17 00:00:00 2001 From: Homa Wong Date: Wed, 22 Aug 2018 13:34:03 -0700 Subject: [PATCH] Update spec-manager.ts --- 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..45137916 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.locatin.host }; let schemes = this._schema.schemes; let protocol;