Update spec-manager.ts

This commit is contained in:
Homa Wong 2018-08-22 13:34:03 -07:00 committed by GitHub
parent dbbcfd4e2b
commit beed140297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;