Fix issue #1160 "piKey is not set when Explore button is clicked "

This commit is contained in:
Mohsen Azimi
2015-04-14 13:30:55 -07:00
parent e0687b044d
commit a7d708593c
4 changed files with 12 additions and 4 deletions

View File

@@ -69,11 +69,15 @@
/*
var apiKey = "myApiKeyXXXX123456789";
$('#input_apiKey').val(apiKey);
addApiKeyAuthorization();
*/
window.swaggerUi.load();
// Add authorization if auth input is not empty
if ($('#input_apiKey').val().length) {
addApiKeyAuthorization();
}
function log() {
if ('console' in window) {
console.log.apply(console, arguments);