fix: ip addresses not supported as host (#616)

* Update spec-manager.ts
* fix typo
This commit is contained in:
Homa Wong 2018-09-10 07:50:18 -07:00 committed by Roman Hotsiy
parent dbbcfd4e2b
commit 3b008a1215

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.location.host
};
let schemes = this._schema.schemes;
let protocol;