web: remove instance override warning, use custom api right away

This commit is contained in:
wukko
2024-11-18 16:32:33 +06:00
parent 2b2bc57331
commit d8348dfa1c
5 changed files with 1 additions and 86 deletions

View File

@@ -6,7 +6,6 @@ import lazySettingGetter from "$lib/settings/lazy-get";
import { getSession } from "$lib/api/session";
import { currentApiURL } from "$lib/api/api-url";
import { turnstileLoaded } from "$lib/state/turnstile";
import { apiOverrideWarning } from "$lib/api/safety-warning";
import { cachedInfo, getServerInfo } from "$lib/api/server-info";
import type { Optional } from "$lib/types/generic";
@@ -37,8 +36,6 @@ const request = async (url: string) => {
alwaysProxy: getSetting("privacy", "alwaysProxy"),
}
await apiOverrideWarning();
await getServerInfo();
const getCachedInfo = get(cachedInfo);