Skip to content

Commit

Permalink
Added linux port lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
osztenkurden committed Jan 23, 2021
1 parent fc0bf4c commit 5136ba9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion craco.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const path = require('path');
const fs = require('fs');
const pathToConfig = path.join(process.env.APPDATA, 'hud-manager', 'databases', 'config');
const homedir = require('os').homedir();
const pathToConfig = path.join(process.env.APPDATA || path.join(homedir, '.config'), 'hud-manager', 'databases', 'config');
let query = '';
if (fs.existsSync(pathToConfig)) {
try {
Expand Down

0 comments on commit 5136ba9

Please sign in to comment.