mirror of
https://github.com/runofthemillgeek/swarnam-obsidian.git
synced 2024-11-16 15:30:16 +00:00
Update best practice for settings.
This commit is contained in:
parent
cfe4d17ce7
commit
ae30a5a418
2
main.ts
2
main.ts
@ -58,7 +58,7 @@ export default class MyPlugin extends Plugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async loadSettings() {
|
async loadSettings() {
|
||||||
this.settings = Object.assign(DEFAULT_SETTINGS, await this.loadData());
|
this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData());
|
||||||
}
|
}
|
||||||
|
|
||||||
async saveSettings() {
|
async saveSettings() {
|
||||||
|
Loading…
Reference in New Issue
Block a user