mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-22 10:22:30 +01:00
fix: cdn urls having extra slash
This commit is contained in:
parent
8991b0e29f
commit
1696c91b5a
@ -44,7 +44,7 @@ export default class REST {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
queryParams: Record<string, any> = {},
|
||||
) {
|
||||
const url = new URL(`${Globals.routeSettings.cdn}/${path}`);
|
||||
const url = new URL(`${Globals.routeSettings.cdn}${path}`);
|
||||
Object.entries(queryParams).forEach(([key, value]) => {
|
||||
url.searchParams.append(key, value);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user