diff options
-rw-r--r-- | src/app/main.css | 1 | ||||
-rw-r--r-- | src/utils.js | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/app/main.css b/src/app/main.css index 30f462e..3907461 100644 --- a/src/app/main.css +++ b/src/app/main.css @@ -353,6 +353,7 @@ code { #modsdiv { height: 50vh; + overflow-y: scroll; border-radius: 5px; background: var(--bg); backdrop-filter: blur(15px); diff --git a/src/utils.js b/src/utils.js index 17091b4..4cdb5f5 100644 --- a/src/utils.js +++ b/src/utils.js @@ -271,6 +271,15 @@ const mods = { let mods = []; let disabled = []; + if (! fs.existsSync(modpath)) { + fs.mkdirSync(path.join(modpath + "disabled"), {recursive: true}) + return { + enabled: [], + disabled: [], + all: [] + }; + } + files = fs.readdirSync(modpath) files.forEach((file) => { if (fs.statSync(path.join(modpath, file)).isDirectory()) { |