From 99ae63bbc4eb71707166ac4703c441c40064ed6f Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Wed, 10 Apr 2024 10:12:16 +0800 Subject: [PATCH] bugfix --- noname/init/index.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/noname/init/index.js b/noname/init/index.js index e2e662a55..e1af73d4e 100644 --- a/noname/init/index.js +++ b/noname/init/index.js @@ -441,20 +441,18 @@ export async function boot() { //lib.init.onload=backup_onload; _status.evaluatingExtension = false; } - else if (!localStorage.getItem(lib.configprefix + 'directstart') && show_splash) { + else { extensionlist.push(config.get('extensions')[name]); } } } else { - if (!localStorage.getItem(lib.configprefix + 'directstart') && show_splash) { - for (var name = 0; name < config.get('extensions').length; name++) { - if (Reflect.get(window, 'bannedExtensions').includes(config.get('extensions')[name])) { - continue; - } - // @ts-ignore - game.import('extension', { name: config.get('extensions')[name] }); + for (var name = 0; name < config.get('extensions').length; name++) { + if (Reflect.get(window, 'bannedExtensions').includes(config.get('extensions')[name])) { + continue; } + // @ts-ignore + game.import('extension', { name: config.get('extensions')[name] }); } }