Replace __dirname with process.dirname
This commit is contained in:
parent
979a30e938
commit
058c39ab0d
1 changed files with 1 additions and 1 deletions
|
@ -1674,7 +1674,7 @@ function saveConfig() {
|
|||
if (configJSONobj.optOutOfStatisticsServer === undefined)
|
||||
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;
|
||||
} catch (err) {
|
||||
if (i >= 2) throw err;
|
||||
|
|
Loading…
Reference in a new issue