diff --git a/src/controllers/custom/updateConfigDataController.ts b/src/controllers/custom/updateConfigDataController.ts index 38d6ca35..1b13cc60 100644 --- a/src/controllers/custom/updateConfigDataController.ts +++ b/src/controllers/custom/updateConfigDataController.ts @@ -3,11 +3,11 @@ import path from "path"; import fs from "fs"; const rootDir = path.join(__dirname, "../../.."); -const updateConfigDataController: RequestHandler = (req) => { +const updateConfigDataController: RequestHandler = req => { const updateSettingsData = req.body; - - fs.writeFile(path.join(rootDir, "config.json"), updateSettingsData, function(err:any) { - if(err) { + + fs.writeFile(path.join(rootDir, "config.json"), updateSettingsData, function (err: any) { + if (err) { return console.log(err); } }); diff --git a/src/routes/custom.ts b/src/routes/custom.ts index 6c0a7416..476c5997 100644 --- a/src/routes/custom.ts +++ b/src/routes/custom.ts @@ -15,4 +15,4 @@ customRouter.post("/addItem", addItemController); customRouter.get("/config", getConfigDataController); customRouter.post("/config", updateConfigDataController); -export { customRouter }; \ No newline at end of file +export { customRouter }; diff --git a/static/webui/index.html b/static/webui/index.html index 6ab05bad..df711a5f 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -96,8 +96,8 @@
- Note: Changes made here will only be reflected in-game when the game re-downloads your inventory. - Visiting the navigation should be the easiest way to trigger that. + Note: Changes made here will only be reflected in-game when the game re-downloads your + inventory. Visiting the navigation should be the easiest way to trigger that.
- Note: Changes made here will only be reflected in-game when the game re-downloads your inventory. - Visiting the navigation should be the easiest way to trigger that. + Note: Changes made here will only be reflected in-game when the game re-downloads your + inventory. Visiting the navigation should be the easiest way to trigger that.