From 25febe79908663c1d62dadd15ca4fcd2de82a046 Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Wed, 3 Jul 2024 12:27:12 -0400 Subject: [PATCH] chore: Use `_shinylive-mode` for query parameter in exported apps --- export_template/edit/index.html | 2 +- src/Components/App.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/export_template/edit/index.html b/export_template/edit/index.html index c0fc9d35..a0190f62 100644 --- a/export_template/edit/index.html +++ b/export_template/edit/index.html @@ -4,7 +4,7 @@ Redirect to editable app diff --git a/src/Components/App.tsx b/src/Components/App.tsx index 2d21b883..67f9ccde 100644 --- a/src/Components/App.tsx +++ b/src/Components/App.tsx @@ -593,7 +593,7 @@ export async function runExportedApp({ // Get `appMode` from the URL query string const urlParams = new URLSearchParams(window.location.search); - let appMode = urlParams.get("mode") ?? "viewer"; + let appMode = urlParams.get("_shinylive-mode") ?? "viewer"; if (!AppModes.includes(appMode)) { console.warn(`[shinylive] Unrecognized app mode: ${appMode}`);