10 lines
287 B
TypeScript
10 lines
287 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
export function getUrlWithLoginId(url: string, loginId: string): string {
|
|
const u = new URL(url, origin);
|
|
u.searchParams.set('loginId', loginId);
|
|
return u.toString();
|
|
}
|