diff --git a/examples/example-static-specification.yaml b/examples/example-static-specification.yaml index 335f653..a787464 100644 --- a/examples/example-static-specification.yaml +++ b/examples/example-static-specification.yaml @@ -27,5 +27,5 @@ paths: date: type: string example: - health: true + health: true date: "2018-02-19T15:36:46.758Z" \ No newline at end of file diff --git a/lib/index-html.js b/lib/index-html.js index 85cbc17..5484a76 100644 --- a/lib/index-html.js +++ b/lib/index-html.js @@ -21,7 +21,7 @@ function indexHtml (opts) { `} - +
diff --git a/lib/swagger-initializer.js b/lib/swagger-initializer.js index 4e1fc4a..2ccdfcc 100644 --- a/lib/swagger-initializer.js +++ b/lib/swagger-initializer.js @@ -15,14 +15,14 @@ function swaggerInitializer (opts) { if (document.querySelector(selector)) { return resolve(document.querySelector(selector)); } - + const observer = new MutationObserver(mutations => { if (document.querySelector(selector)) { observer.disconnect(); resolve(document.querySelector(selector)); } }); - + // If you get "parameter 1 is not of type 'Node'" error, see https://stackoverflow.com/a/77855838/492336 observer.observe(document.body, { childList: true,