mirror of https://github.com/espruino/BangleApps
Update app.js
Conform to filename conventions for our settings file—it is json.pull/986/head
parent
8ff08cbaab
commit
4803365ab3
|
@ -52,7 +52,7 @@ class Options {
|
|||
// Only fields named in the defaults will be saved.
|
||||
constructor() {
|
||||
this.id = this.constructor.id;
|
||||
this.file = `${this.id}.opt`;
|
||||
this.file = `${this.id}.json`;
|
||||
this.backing = storage.readJSON(this.file, true) || {};
|
||||
this.defaults = this.constructor.defaults;
|
||||
Object.keys(this.defaults).forEach(k => this.bless(k));
|
||||
|
|
Loading…
Reference in New Issue