Merge branch 'master' of github.com:swagger-api/swagger-ui

This commit is contained in:
Tony Tam
2016-08-10 14:12:25 +02:00

View File

@@ -61,13 +61,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
// Localhost override
this.model.validatorUrl = null;
} else {
// Default validator
if(window.location.protocol === 'https:') {
this.model.validatorUrl = 'https://online.swagger.io/validator';
}
else {
this.model.validatorUrl = 'http://online.swagger.io/validator';
}
this.model.validatorUrl = '//online.swagger.io/validator';
}
// JSonEditor requires type='object' to be present on defined types, we add it if it's missing