1
0
Fork 0
forked from svrjs/svrjs

Replace __dirname with process.dirname

This commit is contained in:
Dorian Niemiec 2024-08-29 19:15:37 +02:00
parent 979a30e938
commit 058c39ab0d

View file

@ -1674,7 +1674,7 @@ function saveConfig() {
if (configJSONobj.optOutOfStatisticsServer === undefined) if (configJSONobj.optOutOfStatisticsServer === undefined)
configJSONobj.optOutOfStatisticsServer = false; configJSONobj.optOutOfStatisticsServer = false;
fs.writeFileSync(__dirname + "/config.json", JSON.stringify(configJSONobj, null, 2) + "\n"); fs.writeFileSync(process.dirname + "/config.json", JSON.stringify(configJSONobj, null, 2) + "\n");
break; break;
} catch (err) { } catch (err) {
if (i >= 2) throw err; if (i >= 2) throw err;