move showbox fix to util function

This commit is contained in:
thehairy
2024-02-27 22:26:43 +01:00
parent 85cb751542
commit f47a2b0f40
2 changed files with 13 additions and 7 deletions

5
src/utils/params.ts Normal file
View File

@@ -0,0 +1,5 @@
export function createSearchParams(params: { [key: string]: string | number }): string {
return Object.entries(params)
.map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`)
.join('&');
}