Skip to content

Commit 4975445

Browse files
committed
Merge pull request swagger-api#1278 from swagger-api/develop_2.0
Merged from develop_2.0
2 parents d3bc023 + 666246c commit 4975445

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "swagger-ui",
33
"main": "dist/index.html",
4-
"version": "2.1.3-M2",
4+
"version": "2.1.4-M2",
55
"authors": [
66
"Mohsen Azimi <[email protected]>"
77
],

dist/swagger-ui.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* 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
3-
* @version v2.1.3-M2
3+
* @version v2.1.4-M2
44
* @link http://swagger.io
55
* @license Apache 2.0
66
*/
@@ -20891,7 +20891,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
2089120891
} else {
2089220892

2089320893
// Default validator
20894-
if(window.location.protocol.startsWith('http')) {
20894+
if(window.location.protocol.indexOf('http') === 0) {
2089520895
this.model.validatorUrl = window.location.protocol + '//online.swagger.io/validator';
2089620896
}
2089720897
}

dist/swagger-ui.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99
],
1010
"description": "Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API",
11-
"version": "2.1.3-M2",
11+
"version": "2.1.4-M2",
1212
"homepage": "http://swagger.io",
1313
"license": "Apache 2.0",
1414
"main": "dist/swagger-ui.js",

src/main/javascript/view/MainView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
6868
} else {
6969

7070
// Default validator
71-
if(window.location.protocol.startsWith('http')) {
71+
if(window.location.protocol.indexOf('http') === 0) {
7272
this.model.validatorUrl = window.location.protocol + '//online.swagger.io/validator';
7373
}
7474
}

0 commit comments

Comments
 (0)