Update app.js

Conform to filename conventions for our settings file—it is json.
pull/986/head
stephenPspackman 2021-12-02 11:49:28 -08:00 committed by GitHub
parent 8ff08cbaab
commit 4803365ab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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));