Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed Sep 21, 2023
1 parent b9e67f1 commit 98b2077
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/renderer/src/progress/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ export const save = (page, overrides = {}) => {
export const getEntries = () => {
if (fs && !fs.existsSync(guidedProgressFilePath)) fs.mkdirSync(guidedProgressFilePath, { recursive: true }); //Check if progress folder exists. If not, create it.
const progressFiles = fs ? fs.readdirSync(guidedProgressFilePath) : Object.keys(localStorage);
console.log(progressFiles)

return progressFiles.filter((path) => path.slice(-5) === ".json");
};

Expand Down

0 comments on commit 98b2077

Please sign in to comment.