Fixed case sensitivity for storage file
This commit is contained in:
parent
beb013122f
commit
713e9e93d3
|
@ -34,9 +34,9 @@ bdPluginStorage.defaults = {
|
||||||
};
|
};
|
||||||
|
|
||||||
function initStorage() {
|
function initStorage() {
|
||||||
if(!_fs.existsSync(_cfg.dataPath + "/bdstorage.json")) {
|
if(!_fs.existsSync(_cfg.dataPath + "/bdStorage.json")) {
|
||||||
bdStorage.data = bdStorage.defaults.data;
|
bdStorage.data = bdStorage.defaults.data;
|
||||||
_fs.writeFileSync(_cfg.dataPath + "/bdstorage.json", JSON.stringify(bdStorage, null, 4));
|
_fs.writeFileSync(_cfg.dataPath + "/bdStorage.json", JSON.stringify(bdStorage, null, 4));
|
||||||
} else {
|
} else {
|
||||||
bdStorage.data = JSON.parse(_fs.readFileSync(_cfg.dataPath + "/bdStorage.json"));
|
bdStorage.data = JSON.parse(_fs.readFileSync(_cfg.dataPath + "/bdStorage.json"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue