From 94830b5da5f878a4413e363b507feeaf7adac12e Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Sat, 15 Aug 2020 22:44:31 +1000 Subject: [PATCH] make it possible to enabled/disable multiple extensions --- repo/core/menu.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/repo/core/menu.js b/repo/core/menu.js index 4f0f3e1..831d44c 100644 --- a/repo/core/menu.js +++ b/repo/core/menu.js @@ -373,7 +373,8 @@ window['__start'] = async () => { ? 1 : a.name.localeCompare(b.name) )) { - const menuStore = store('mods', { [mod.id]: { enabled: false } }), + const enabled = store('mods', { [mod.id]: { enabled: false } })[mod.id] + .enabled, author = typeof mod.author === 'object' ? mod.author @@ -384,9 +385,7 @@ window['__start'] = async () => { }; mod.elem = createElement(`