Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "swagger-ui",
"main": "dist/index.html",
"version": "2.1.3-M2",
"version": "2.1.4-M2",
"authors": [
"Mohsen Azimi <me@azimi.me>"
],
Expand Down
4 changes: 2 additions & 2 deletions dist/swagger-ui.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* swagger-ui - Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API
* @version v2.1.3-M2
* @version v2.1.4-M2
* @link http://swagger.io
* @license Apache 2.0
*/
Expand Down Expand Up @@ -20891,7 +20891,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
} else {

// Default validator
if(window.location.protocol.startsWith('http')) {
if(window.location.protocol.indexOf('http') === 0) {
this.model.validatorUrl = window.location.protocol + '//online.swagger.io/validator';
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/swagger-ui.min.js

Large diffs are not rendered by default.

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 UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API",
"version": "2.1.3-M2",
"version": "2.1.4-M2",
"homepage": "http://swagger.io",
"license": "Apache 2.0",
"main": "dist/swagger-ui.js",
Expand Down
2 changes: 1 addition & 1 deletion src/main/javascript/view/MainView.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
} else {

// Default validator
if(window.location.protocol.startsWith('http')) {
if(window.location.protocol.indexOf('http') === 0) {
this.model.validatorUrl = window.location.protocol + '//online.swagger.io/validator';
}
}
Expand Down