obsidian-semantic

Log | Files | Refs | README

commit ae30a5a418914f6c6af1550c7a5955ffa0d00e40
parent cfe4d17ce7dd3346af83e5578d87556f97285951
Author: lishid <lishid@gmail.com>
Date:   Sun, 24 Jan 2021 15:41:47 -0500

Update best practice for settings.

Diffstat:
Mmain.ts | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.ts b/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() {