1
0
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:
Puyodead1 2023-05-10 20:00:10 -04:00
parent 8991b0e29f
commit 1696c91b5a
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -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);
});