enhance(frontend): improve plugin management

This commit is contained in:
syuilo
2025-03-09 21:57:56 +09:00
parent 8e3304344f
commit c76afce9a7
5 changed files with 51 additions and 38 deletions

View File

@@ -27,7 +27,7 @@ import { addCustomEmoji, removeCustomEmojis, updateCustomEmojis } from '@/custom
import { prefer } from '@/preferences.js';
import { misskeyApi } from '@/utility/misskey-api.js';
import { deckStore } from '@/ui/deck/deck-store.js';
import { launchPlugin } from '@/plugin.js';
import { launchPlugins } from '@/plugin.js';
export async function mainBoot() {
const { isClientUpdated } = await common(() => {
@@ -105,9 +105,7 @@ export async function mainBoot() {
removeCustomEmojis(emojiData.emojis);
});
for (const plugin of prefer.s.plugins.filter(p => p.active)) {
launchPlugin(plugin);
}
launchPlugins();
try {
if (prefer.s.enableSeasonalScreenEffect) {