Skip to content

Commit

Permalink
placement renderer process data changed
Browse files Browse the repository at this point in the history
  • Loading branch information
czytelny committed Mar 13, 2018
1 parent 4933945 commit 539c6a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/main/windowRepository.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const low = require('lowdb')
const FileSync = require('lowdb/adapters/FileSync')

export default function (userAppPath) {
console.log(`${userAppPath}`)
const windowAdapter = new FileSync(userAppPath)
const windowSettings = low(windowAdapter)
windowSettings.defaults({
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/persistence.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const low = require('lowdb')
const FileSync = require('lowdb/adapters/FileSync')
const {remote} = require('electron')

const dataAdapter = new FileSync('backlog.json')
const dataAdapter = new FileSync(remote.getGlobal('userDataPath'))

module.exports = {
db: low(dataAdapter)
Expand Down

0 comments on commit 539c6a8

Please sign in to comment.