Update best practice for settings.

This commit is contained in:
lishid 2021-01-24 15:41:47 -05:00
parent cfe4d17ce7
commit ae30a5a418

View File

@ -58,7 +58,7 @@ export default class MyPlugin extends Plugin {
}
async loadSettings() {
this.settings = Object.assign(DEFAULT_SETTINGS, await this.loadData());
this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData());
}
async saveSettings() {