diff --git a/lib/swagger-initializer.js b/lib/swagger-initializer.js index 4107c58..4a39b3d 100644 --- a/lib/swagger-initializer.js +++ b/lib/swagger-initializer.js @@ -12,7 +12,7 @@ function swaggerInitializer (opts) { anchor.href = url return anchor.href } - + const config = ${serialize(opts.uiConfig)} const resConfig = Object.assign({}, { dom_id: '#swagger-ui', @@ -33,7 +33,7 @@ function swaggerInitializer (opts) { const ui = SwaggerUIBundle(resConfig) const logoData = '${logoData}' - if (logoData) { + if (logoData && resConfig.layout === 'StandaloneLayout') { const img = document.querySelector('#swagger-ui > section > div.topbar > div > div > a > img') img.src = logoData }