Skip to content

Commit

Permalink
Add get file list
Browse files Browse the repository at this point in the history
  • Loading branch information
n9lsjr committed Dec 4, 2024
1 parent 6a88f1b commit 4f3f2c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/backend/account.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,17 @@ class Account {
}

save_file(file) {
const list = store.get('files') ?? []
const list = get_files()
list.push(file)
store.set({
files: list
})
}

get_files() {
return store.get('files') ?? []
}

}

let Hugin = new Account()
Expand Down

0 comments on commit 4f3f2c6

Please sign in to comment.