mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-26 14:21:12 +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 };
|
headers?: { [key: string]: string };
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
this.#apiUrl = `${baseUrl}/api/${VERSION}`;
|
this.#apiUrl = `${baseUrl.replace(/\/+$/, "")}/api/${VERSION}`;
|
||||||
this.#pictrsUrl = `${baseUrl}/pictrs/image`;
|
this.#pictrsUrl = `${baseUrl}/pictrs/image`;
|
||||||
|
|
||||||
if (options?.headers) {
|
if (options?.headers) {
|
||||||
|
|
Loading…
Reference in a new issue