mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-16 15:07:36 -07:00
14148f6c4a
Resolve #7779
11 lines
304 B
TypeScript
11 lines
304 B
TypeScript
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();
|
|
}
|