From 44f200542c801d7a5e4c379100855387c0b6aa4b Mon Sep 17 00:00:00 2001 From: Sebastian Ortiz Date: Mon, 13 Apr 2015 13:31:06 -0500 Subject: [PATCH] Call to swaggerUi.load before possible use. Using addApiKeyAuthorization function, needs to be done after swaggerUi is loaded, otherwise calling ``window.swaggerUi.api.clientAuthorizations.add`` will fail, and the authorization headers will not be aded. --- dist/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.html b/dist/index.html index 10a0d902..f80b62ce 100644 --- a/dist/index.html +++ b/dist/index.html @@ -63,6 +63,8 @@ } } + window.swaggerUi.load(); + $('#input_apiKey').change(addApiKeyAuthorization); // if you have an apiKey you would like to pre-populate on the page for demonstration purposes... @@ -72,8 +74,6 @@ addApiKeyAuthorization(); */ - window.swaggerUi.load(); - function log() { if ('console' in window) { console.log.apply(console, arguments);