Skip to content

Commit 52aaf87

Browse files
committed
Fix value for window.location.protocol.
1 parent 59459a6 commit 52aaf87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/javascript/view/MainView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
6262
this.model.validatorUrl = null;
6363
} else {
6464
// Default validator
65-
if(window.location.protocol === 'https') {
65+
if(window.location.protocol === 'https:') {
6666
this.model.validatorUrl = 'https://online.swagger.io/validator';
6767
}
6868
else {

0 commit comments

Comments
 (0)