diff --git a/src/appSettings.js b/src/appSettings.js index 1579295..94c3cdc 100644 --- a/src/appSettings.js +++ b/src/appSettings.js @@ -4,10 +4,13 @@ class Settings { // Heavily based on original for compat, but simplified and twe constructor(path) { try { this.store = JSON.parse(fs.readFileSync(path)); - } catch (e) { + } catch { this.store = {}; } + this.path = path; + this.mod = this.getMod(); + Object.assign(this, { path, mod: this.getMod()