Fix custom.js execution order

This commit is contained in:
Natsumi
2025-12-02 15:13:16 +13:00
parent 9343023adb
commit e76d39b72b
2 changed files with 3 additions and 2 deletions

View File

@@ -3,7 +3,6 @@ import {
changeAppThemeStyle,
getThemeMode,
refreshCustomCss,
refreshCustomScript,
setLoginContainerStyle
} from '../shared/utils/base/ui';
import { i18n } from './i18n';
@@ -29,5 +28,4 @@ export async function initUi() {
}
refreshCustomCss();
refreshCustomScript();
}

View File

@@ -9,6 +9,7 @@ import { debounce, parseLocation } from '../shared/utils';
import { AppDebug } from '../service/appConfig';
import { database } from '../service/database';
import { failedGetRequests } from '../service/request';
import { refreshCustomScript } from '../shared/utils/base/ui';
import { useAdvancedSettingsStore } from './settings/advanced';
import { useAvatarProviderStore } from './avatarProvider';
import { useAvatarStore } from './avatar';
@@ -145,6 +146,8 @@ export const useVrcxStore = defineStore('Vrcx', () => {
maxTableSize.value = 1000;
}
database.setMaxTableSize(maxTableSize.value);
refreshCustomScript();
}
init();