mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 20:57:13 -05:00
remove getVersions call
This commit is contained in:
parent
9434499e7a
commit
b97b8462d9
1 changed files with 1 additions and 6 deletions
|
|
@ -1,10 +1,9 @@
|
||||||
// Copyright: Ankitects Pty Ltd and contributors
|
// Copyright: Ankitects Pty Ltd and contributors
|
||||||
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
import { getLangs, getMirrors, getOptions, getVersions } from "@generated/backend-launcher";
|
import { getLangs, getMirrors, getOptions } from "@generated/backend-launcher";
|
||||||
import { ModuleName, setupI18n } from "@tslib/i18n";
|
import { ModuleName, setupI18n } from "@tslib/i18n";
|
||||||
import type { PageLoad } from "./$types";
|
import type { PageLoad } from "./$types";
|
||||||
import { versionsStore } from "./stores";
|
|
||||||
|
|
||||||
export const load = (async () => {
|
export const load = (async () => {
|
||||||
const i18nPromise = setupI18n({ modules: [ModuleName.LAUNCHER] }, true);
|
const i18nPromise = setupI18n({ modules: [ModuleName.LAUNCHER] }, true);
|
||||||
|
|
@ -12,10 +11,6 @@ export const load = (async () => {
|
||||||
const optionsPromise = getOptions({});
|
const optionsPromise = getOptions({});
|
||||||
const mirrorsPromise = getMirrors({});
|
const mirrorsPromise = getMirrors({});
|
||||||
|
|
||||||
getVersions({}).then((res) => {
|
|
||||||
versionsStore.set(res);
|
|
||||||
});
|
|
||||||
|
|
||||||
const [_, { userLocale, langs }, options, { mirrors }] = await Promise.all([
|
const [_, { userLocale, langs }, options, { mirrors }] = await Promise.all([
|
||||||
i18nPromise,
|
i18nPromise,
|
||||||
langsPromise,
|
langsPromise,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue