/
githubmirror
/
pixijs
Обзор
Документация
Войти
/
githubmirror
/
pixijs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
src/assets/utils/copySearchParams.ts
18 строк
484 B
Zyie
chore: documentation overhaul with typedoc (#11423)
19 май 2025, 11:44
Не верифицирован
19 май 2025, 11:44
34926f0
Код
Авторство
О чём код?
/** * Copies the search params from one url to another * @param targetUrl - the url to copy the search params to * @param sourceUrl - the url container the search params we want to copy * @returns the url with the search params copied * @internal */ export const copySearchParams = (targetUrl: string, sourceUrl: string) => { const searchParams = sourceUrl.split('?')[1]; if (searchParams) { targetUrl += `?${searchParams}`; } return targetUrl; };