From f79887c5e21d2525c8ecb4eb30eb1f002f28cb94 Mon Sep 17 00:00:00 2001 From: Michael Wiesenbauer <11874984+mwiesenbauer@users.noreply.github.com> Date: Mon, 14 Oct 2024 10:57:24 +0200 Subject: [PATCH] inline schema if singleFile is set --- components/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/index.js b/components/index.js index 5862c3277..b4a04b41e 100644 --- a/components/index.js +++ b/components/index.js @@ -26,6 +26,10 @@ export function Index({ asyncapi, params = {} }) { if(params.baseHref) { basehref = ``; } + let appJs = ``; + if(params?.singleFile) { + appJs = ``; + } return (` @@ -42,7 +46,7 @@ export function Index({ asyncapi, params = {} }) { ${asyncapiScript} - + ${appJs} ` );