From cfd2074321ed8aafaf906f88a2199db0d139f8d2 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Thu, 9 Mar 2023 18:20:21 +0100 Subject: fixed not having to confirm removing core mods --- src/app/js/mods.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/app/js') diff --git a/src/app/js/mods.js b/src/app/js/mods.js index 4ea3428..d4e8043 100644 --- a/src/app/js/mods.js +++ b/src/app/js/mods.js @@ -135,7 +135,7 @@ mods.load = (mods_obj) => { } mods.remove = (mod) => { - if (mod.match(/^northstar\./)) { + if (mod.toLowerCase().match(/^northstar\./)) { if (! confirm(lang("gui.mods.required.confirm"))) { return; } @@ -149,7 +149,7 @@ mods.remove = (mod) => { } mods.toggle = (mod) => { - if (mod.match(/^Northstar\./)) { + if (mod.toLowerCase().match(/^northstar\./)) { if (! confirm(lang("gui.mods.required.confirm"))) { return; } -- cgit v1.2.3