From 98b251b8678e2f3cbe6760c3c2392ac4c667d810 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sat, 24 Aug 2024 19:48:27 +0200 Subject: [PATCH] Fix bug in factoryReset() function. --- svr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svr.js b/svr.js index 8de21e6..79a5673 100644 --- a/svr.js +++ b/svr.js @@ -49,7 +49,7 @@ function factoryReset() { deleteFolderRecursive(__dirname + "/temp"); fs.mkdirSync(__dirname + "/temp"); console.log("Removing configuration file..."); - fs.unlinkSync("config.json"); + fs.unlinkSync(__dirname + "/config.json"); console.log("Done!"); process.exit(0); }