Files
Foundry-VTT-Docker/resources/app/node_modules/@pixi/assets/lib/utils/copySearchParams.mjs.map
2025-01-04 00:34:03 +01:00

1 line
745 B
Plaintext

{"version":3,"file":"copySearchParams.mjs","sources":["../../src/utils/copySearchParams.ts"],"sourcesContent":["/**\n * Copies the search params from one url to another\n * @param targetUrl - the url to copy the search params to\n * @param sourceUrl - the url container the search params we want to copy\n * @returns the url with the search params copied\n */\nexport const copySearchParams = (targetUrl: string, sourceUrl: string) =>\n{\n const searchParams = sourceUrl.split('?')[1];\n\n if (searchParams)\n {\n targetUrl += `?${searchParams}`;\n }\n\n return targetUrl;\n};\n"],"names":[],"mappings":"AAMa,MAAA,mBAAmB,CAAC,WAAmB,cACpD;AACI,QAAM,eAAe,UAAU,MAAM,GAAG,EAAE,CAAC;AAE3C,SAAI,iBAEA,aAAa,IAAI,YAAY,KAG1B;AACX;"}