Fix issue #1160 "piKey is not set when Explore button is clicked "
This commit is contained in:
6
dist/index.html
vendored
6
dist/index.html
vendored
@@ -69,11 +69,15 @@
|
|||||||
/*
|
/*
|
||||||
var apiKey = "myApiKeyXXXX123456789";
|
var apiKey = "myApiKeyXXXX123456789";
|
||||||
$('#input_apiKey').val(apiKey);
|
$('#input_apiKey').val(apiKey);
|
||||||
addApiKeyAuthorization();
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
window.swaggerUi.load();
|
window.swaggerUi.load();
|
||||||
|
|
||||||
|
// Add authorization if auth input is not empty
|
||||||
|
if ($('#input_apiKey').val().length) {
|
||||||
|
addApiKeyAuthorization();
|
||||||
|
}
|
||||||
|
|
||||||
function log() {
|
function log() {
|
||||||
if ('console' in window) {
|
if ('console' in window) {
|
||||||
console.log.apply(console, arguments);
|
console.log.apply(console, arguments);
|
||||||
|
|||||||
2
dist/swagger-ui.js
vendored
2
dist/swagger-ui.js
vendored
@@ -20692,7 +20692,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
// Default validator
|
// Default validator
|
||||||
this.model.validatorUrl = 'http://online.swagger.io/validator';
|
this.model.validatorUrl = window.location.protocol + '//online.swagger.io/validator';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
2
dist/swagger-ui.min.js
vendored
2
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -69,11 +69,15 @@
|
|||||||
/*
|
/*
|
||||||
var apiKey = "myApiKeyXXXX123456789";
|
var apiKey = "myApiKeyXXXX123456789";
|
||||||
$('#input_apiKey').val(apiKey);
|
$('#input_apiKey').val(apiKey);
|
||||||
addApiKeyAuthorization();
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
window.swaggerUi.load();
|
window.swaggerUi.load();
|
||||||
|
|
||||||
|
// Add authorization if auth input is not empty
|
||||||
|
if ($('#input_apiKey').val().length) {
|
||||||
|
addApiKeyAuthorization();
|
||||||
|
}
|
||||||
|
|
||||||
function log() {
|
function log() {
|
||||||
if ('console' in window) {
|
if ('console' in window) {
|
||||||
console.log.apply(console, arguments);
|
console.log.apply(console, arguments);
|
||||||
|
|||||||
Reference in New Issue
Block a user