Skip to content

Commit

Permalink
Merge pull request #924 from swagger-api/issue-923
Browse files Browse the repository at this point in the history
update version, es5 fix
  • Loading branch information
fehguy authored Jan 5, 2017
2 parents cdb78f6 + 1e2b4d0 commit 669f1c7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swagger-js",
"version": "2.1.27",
"version": "2.1.28",
"main": "browser/swagger-client.js",
"ignore": [
"gulpfile.js",
Expand Down
6 changes: 3 additions & 3 deletions browser/swagger-client.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions browser/swagger-client.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ SwaggerClient.prototype.buildFromSpec = function (response) {
else {
this.scheme = location.scheme || 'http';
}
} else if (typeof window !== 'undefined' && window.location.protocol.startsWith('chrome-extension')) {
} else if (typeof window !== 'undefined' && window.location.protocol.indexOf('chrome-extension') === 0) {
// if it is chrome swagger ui extension scheme then let swagger doc url scheme decide the protocol
this.scheme = location.scheme;
} else if (typeof this.scheme === 'undefined') {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
],
"description": "swagger-client is a javascript client for use with swaggering APIs.",
"version": "2.1.27",
"version": "2.1.28",
"homepage": "http://swagger.io",
"repository": {
"type": "git",
Expand Down

0 comments on commit 669f1c7

Please sign in to comment.