This commit is contained in:
Tony Tam
2015-05-13 08:49:50 -04:00
2 changed files with 9 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

@@ -68,7 +68,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
} else { } else {
// Default validator // 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'; this.model.validatorUrl = window.location.protocol + '//online.swagger.io/validator';
} }
} }