Upgrade lemmy-js-client to 0.18.0-rc.2
(#1445)
* Updating translations. * Upgrading lemmy-js-client.
This commit is contained in:
parent
101b830d87
commit
5c55b41971
5 changed files with 15 additions and 18 deletions
|
@ -11,7 +11,9 @@ let manifest: Awaited<ReturnType<typeof generateManifestJson>> | undefined =
|
|||
export default async (req: Request, res: Response) => {
|
||||
if (!manifest) {
|
||||
const headers = setForwardedHeaders(req.headers);
|
||||
const client = wrapClient(new LemmyHttp(getHttpBaseInternal(), headers));
|
||||
const client = wrapClient(
|
||||
new LemmyHttp(getHttpBaseInternal(), { fetchFunction: fetch, headers })
|
||||
);
|
||||
const site = await client.getSite({});
|
||||
|
||||
if (site.state === "success") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue