Skip to content

Commit

Permalink
Hopefully this works...
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderson1993 committed Jun 18, 2018
1 parent a6761f0 commit 4751634
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
6 changes: 0 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@
"jest": "20.0.4",
"jest-localstorage-mock": "^2.2.0",
"lint-staged": "^7.2.0",
"nodemon": "^1.17.5",
"node-sass-chokidar": "1.3.0",
"nodemon": "^1.17.5",
"pkg": "^4.3.1",
"platform-folders": "^0.2.4",
"plop": "^2.0.0",
"prettier": "^1.13.5",
"react-dev-utils": "^5.0.1",
Expand Down
8 changes: 6 additions & 2 deletions server/helpers/paths.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import getPath from "platform-folders";
const AppDirectory = require("appdirectory");
const fs = require("fs");
const oldpaths = new AppDirectory({
appName: "thorium",
appAuthor: "Fyreworks LLC"
});

if (!fs.existsSync(`${require("os").homedir()}/Documents`)) {
fs.mkdirSync(`${require("os").homedir()}/Documents`);
}

const paths = {
userData: `${getPath("documents")}/thorium`,
userData: `${require("os").homedir()}/Documents/thorium`,
oldData: oldpaths._userDataTemplate
.replace("{0}", "thorium")
.replace("/{1}", "")
Expand Down

0 comments on commit 4751634

Please sign in to comment.