forked from svrjs/svrjs
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)
|
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;
|
||||||
|
|
Reference in a new issue