mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -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
|
||||
// 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 type { PageLoad } from "./$types";
|
||||
import { versionsStore } from "./stores";
|
||||
|
||||
export const load = (async () => {
|
||||
const i18nPromise = setupI18n({ modules: [ModuleName.LAUNCHER] }, true);
|
||||
|
|
@ -12,10 +11,6 @@ export const load = (async () => {
|
|||
const optionsPromise = getOptions({});
|
||||
const mirrorsPromise = getMirrors({});
|
||||
|
||||
getVersions({}).then((res) => {
|
||||
versionsStore.set(res);
|
||||
});
|
||||
|
||||
const [_, { userLocale, langs }, options, { mirrors }] = await Promise.all([
|
||||
i18nPromise,
|
||||
langsPromise,
|
||||
|
|
|
|||
Loading…
Reference in a new issue