Files
openmotion/shared/workspace-page-name.ts
open-design-crew[bot] bc806262d7 perf(studio): start Explore sooner and defer catalogue and video transfers (#1076)
* perf(studio): discover Explore earlier and defer offscreen downloads

* fix(studio): retry failed archived hero clips with the MP4 MIME type

---------

Co-authored-by: lefarcen <935902669@qq.com>
2026-11-25 17:49:41 +08:00

9 lines
501 B
TypeScript

/** Project and template handoff URLs retain their editor context. Keep this
* decision independent of the Studio catalog so bootstrap can reuse it. */
export function workspacePageName(query: URLSearchParams, hash: string) {
const page = query.get('page');
if (page !== null && page !== 'api') return page;
if (query.has('project') || query.has('session') || hash.startsWith('#project/') || query.get('templates') === '1' || query.get('hostChrome') === '1') return null;
return 'explore';
}