mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
8 lines
250 B
TypeScript
8 lines
250 B
TypeScript
export const getParameterByName = (name: string, url?: string | null | undefined) => {
|
|
if (!url) {
|
|
url = window.location.search;
|
|
}
|
|
|
|
// eslint-disable-next-line compat/compat
|
|
return new URLSearchParams(url).get(name) || '';
|
|
};
|