From: randfur Date: Fri, 14 Jul 2023 00:01:14 +0000 (+1000) Subject: Fix start_url and scope (#1931) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/%7Bthis.props.src%7D?a=commitdiff_plain;h=cd1a11c77a3a81ce3d2b17b3b017116092fbea8c;p=lemmy-ui.git Fix start_url and scope (#1931) Remove unused import --- diff --git a/src/server/utils/generate-manifest-json.ts b/src/server/utils/generate-manifest-json.ts index 2f9d8b8..89e106e 100644 --- a/src/server/utils/generate-manifest-json.ts +++ b/src/server/utils/generate-manifest-json.ts @@ -1,4 +1,3 @@ -import { getHttpBaseExternal } from "@utils/env"; import { readFile } from "fs/promises"; import { GetSiteResponse } from "lemmy-js-client"; import path from "path"; @@ -21,15 +20,13 @@ export default async function ({ local_site: { community_creation_admin_only }, }, }: GetSiteResponse) { - const url = getHttpBaseExternal(); - const icon = site.icon ? await fetchIconPng(site.icon) : null; return { name: site.name, description: site.description ?? "A link aggregator for the fediverse", - start_url: url, - scope: url, + start_url: "/", + scope: "/", display: "standalone", id: "/", background_color: "#222222",