rename: client -> frontend
This commit is contained in:
11
packages/frontend/src/scripts/login-id.ts
Normal file
11
packages/frontend/src/scripts/login-id.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export function getUrlWithLoginId(url: string, loginId: string) {
|
||||
const u = new URL(url, origin);
|
||||
u.searchParams.append('loginId', loginId);
|
||||
return u.toString();
|
||||
}
|
||||
|
||||
export function getUrlWithoutLoginId(url: string) {
|
||||
const u = new URL(url);
|
||||
u.searchParams.delete('loginId');
|
||||
return u.toString();
|
||||
}
|
Reference in New Issue
Block a user