Loëck Vézien
7 years ago
2 changed files with 23 additions and 5 deletions
@ -1,7 +1,25 @@ |
|||||
import Store from 'electron-store' |
import Store from 'electron-store' |
||||
|
|
||||
const store = new Store({ |
export default { |
||||
// encryptionKey: 'toto',
|
accounts: () => { |
||||
}) |
const db = new Store({ |
||||
|
name: 'accounts', |
||||
|
default: { |
||||
|
accounts: [], |
||||
|
}, |
||||
|
}) |
||||
|
|
||||
export default store |
return { |
||||
|
get: db.get('accounts'), |
||||
|
set: accounts => db.get('accounts', accounts), |
||||
|
} |
||||
|
}, |
||||
|
settings: () => { |
||||
|
const db = new Store({ |
||||
|
name: 'settings', |
||||
|
default: {}, |
||||
|
}) |
||||
|
|
||||
|
return db |
||||
|
}, |
||||
|
} |
||||
|
Loading…
Reference in new issue