Skip to content

Commit

Permalink
style: remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Nov 3, 2024
1 parent 376fb34 commit 45f5e79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/example-static-specification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ paths:
date:
type: string
example:
health: true
health: true
date: "2018-02-19T15:36:46.758Z"
2 changes: 1 addition & 1 deletion lib/index-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function indexHtml (opts) {
<link rel="icon" type="image/png" href="${prefix}/favicon-16x16.png" sizes="16x16" />
`}
</head>
<body>
<div id="swagger-ui"></div>
<script src="${prefix}/swagger-ui-bundle.js" charset="UTF-8"> </script>
Expand Down
4 changes: 2 additions & 2 deletions lib/swagger-initializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 45f5e79

Please sign in to comment.