fixed config.json problem
This commit is contained in:
parent
5333b41e26
commit
ed3ffcc95e
@ -68,7 +68,7 @@ var conf_default = {
|
|||||||
sort : true
|
sort : true
|
||||||
};
|
};
|
||||||
|
|
||||||
var conf = JSON.parse(fs.readFileSync('config.json', 'utf8'));
|
var conf = (fs.existsSync('config.json') ? JSON.parse(fs.readFileSync('config.json', 'utf8')) : "");
|
||||||
conf = _.extend({}, conf_default, conf);
|
conf = _.extend({}, conf_default, conf);
|
||||||
|
|
||||||
var locales = {
|
var locales = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user