Update best practice for settings.
This commit is contained in:
parent
cfe4d17ce7
commit
ae30a5a418
1 changed files with 1 additions and 1 deletions
2
main.ts
2
main.ts
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue