mirror of
https://github.com/nexu-io/openmotion.git
synced 2026-12-02 15:11:31 +08:00
* 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>
9 lines
501 B
TypeScript
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';
|
|
}
|