aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-03-09 18:20:21 +0100
committer0neGal <mail@0negal.com>2023-03-09 18:20:21 +0100
commitcfd2074321ed8aafaf906f88a2199db0d139f8d2 (patch)
tree14ebb95e95d81b6caf698d224a3d490f4457b96b
parent3e6976207dd980fc58d7a4e7e0d5c69060c062e1 (diff)
downloadViper-cfd2074321ed8aafaf906f88a2199db0d139f8d2.tar.gz
Viper-cfd2074321ed8aafaf906f88a2199db0d139f8d2.zip
fixed not having to confirm removing core mods
-rw-r--r--src/app/js/mods.js4
1 files changed, 2 insertions, 2 deletions
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;
}