diff --git a/export_template/index.html b/export_template/index.html index b9a219d3..da340575 100644 --- a/export_template/index.html +++ b/export_template/index.html @@ -12,7 +12,11 @@ > diff --git a/src/Components/App.tsx b/src/Components/App.tsx index 3e558250..a2de2c3b 100644 --- a/src/Components/App.tsx +++ b/src/Components/App.tsx @@ -568,11 +568,15 @@ export function App({ // This function helps launch apps exported with the shinylive Python and R // packages and is used by `export_template/index.html`. -export async function runExportedApp( - id: string, - appEngine: AppEngine, +export async function runExportedApp({ + id, + appEngine, relPath = "", -) { +}: { + id: string; + appEngine: AppEngine; + relPath: string; +}) { const response = await fetch("./app.json"); if (!response.ok) { throw new Error("HTTP error loading app.json: " + response.status);