mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 18:13:25 +00:00
move showbox fix to util function
This commit is contained in:
5
src/utils/params.ts
Normal file
5
src/utils/params.ts
Normal 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('&');
|
||||
}
|
Reference in New Issue
Block a user