mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-01 01:59:55 +00:00
Merge branch 'main' into custom-fetchinator
This commit is contained in:
commit
6e1c4162d1
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ export class LemmyHttp {
|
|||
headers?: { [key: string]: string };
|
||||
}
|
||||
) {
|
||||
this.#apiUrl = `${baseUrl}/api/${VERSION}`;
|
||||
this.#apiUrl = `${baseUrl.replace(/\/+$/, "")}/api/${VERSION}`;
|
||||
this.#pictrsUrl = `${baseUrl}/pictrs/image`;
|
||||
|
||||
if (options?.headers) {
|
||||
|
|
Loading…
Reference in a new issue