mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 23:26:30 +08:00
chore: workspace name
This commit is contained in:
@@ -5,15 +5,6 @@ export function getUserDisplayName(user?: UserInfo) {
|
||||
return nickname || username || email || 'Unknown User';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get workspace_id from URL
|
||||
* @returns workspace_id
|
||||
*/
|
||||
export function getWorkspaceId() {
|
||||
const path = window.location.pathname.match(/\/(\w+)\//);
|
||||
return path ? path[1] : undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get page_id from URL
|
||||
* @returns page_id
|
||||
|
||||
Reference in New Issue
Block a user