Skip to content

Commit 160982a

Browse files
Add secret embed option for facilitating iframe usage of map
It's not a very good solution, but it is something for now
1 parent 36d1d36 commit 160982a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/client/src/projects/ProjectApp.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export default function ProjectApp() {
7979
);
8080

8181
const [expandSidebar, setExpandSidebar] = useState(!showSidebar);
82+
8283
const { t, i18n } = useTranslation("sidebar");
8384
const sidebarTitles: { [key: string]: string } = {
8485
maps: t("Maps"),
@@ -173,7 +174,10 @@ export default function ProjectApp() {
173174
}
174175
onClose={() => history.replace(`/${slug}/app`)}
175176
dark={dark}
176-
hidden={Boolean(!showSidebar)}
177+
hidden={
178+
Boolean(!showSidebar) ||
179+
showSidebar?.params["sidebar"] === "embed"
180+
}
177181
noPadding={
178182
/sketches/.test(history.location.pathname) ||
179183
/forums/.test(history.location.pathname) ||

0 commit comments

Comments
 (0)