diff --git a/src/main/windowRepository.js b/src/main/windowRepository.js index 47913e5..e9cfe66 100644 --- a/src/main/windowRepository.js +++ b/src/main/windowRepository.js @@ -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({ diff --git a/src/renderer/persistence.js b/src/renderer/persistence.js index 5069597..18b6c8d 100644 --- a/src/renderer/persistence.js +++ b/src/renderer/persistence.js @@ -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)