merged
This commit is contained in:
18
dist/swagger-ui.min.js
vendored
18
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user