Skip to content

Commit

Permalink
feat:getMeta2dData
Browse files Browse the repository at this point in the history
  • Loading branch information
ananzhusen committed Jan 16, 2025
1 parent 8f1c599 commit 2e76d5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/utils/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ export function getToken() {
}

export async function getMeta2dData(store: Meta2dStore, id: string) {
if(globalThis.getMeta2dData){
globalThis.getMeta2dData(id);
return;
}
const netWork = store.options.navigatorNetWork;
const collection =
location.href.includes('2d.') || location.href.includes('/2d') ? '2d' : 'v';
Expand Down

0 comments on commit 2e76d5e

Please sign in to comment.