Skip to content

Commit

Permalink
Add secret embed option for facilitating iframe usage of map
Browse files Browse the repository at this point in the history
It's not a very good solution, but it is something for now
  • Loading branch information
underbluewaters committed Oct 10, 2024
1 parent 36d1d36 commit 160982a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/client/src/projects/ProjectApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export default function ProjectApp() {
);

const [expandSidebar, setExpandSidebar] = useState(!showSidebar);

const { t, i18n } = useTranslation("sidebar");
const sidebarTitles: { [key: string]: string } = {
maps: t("Maps"),
Expand Down Expand Up @@ -173,7 +174,10 @@ export default function ProjectApp() {
}
onClose={() => history.replace(`/${slug}/app`)}
dark={dark}
hidden={Boolean(!showSidebar)}
hidden={
Boolean(!showSidebar) ||
showSidebar?.params["sidebar"] === "embed"
}
noPadding={
/sketches/.test(history.location.pathname) ||
/forums/.test(history.location.pathname) ||
Expand Down

0 comments on commit 160982a

Please sign in to comment.