Skip to content

Commit

Permalink
fix config path
Browse files Browse the repository at this point in the history
  • Loading branch information
Californ1a committed Feb 24, 2018
1 parent 0941d6b commit f896db8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions src/assets/js/distplay-distance.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ const checkButtons = rq("./assets/js/util/checkButtons.js");
const Collection = rq("./assets/js/util/Collection.js");
let config = rq("./assets/js/util/loadConfig.js")();



let map = new Collection();

function checkSticks(axes) {
Expand Down
2 changes: 0 additions & 2 deletions src/assets/js/distplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ rq("./assets/js/util/loadConfig.js")();

let map = new Collection();



function checkSticks(axes) {
if (axes[0] > 0) {
map.find("name", "ls").element.style.left = `${23 + (axes[0] * 18)}px`;
Expand Down
2 changes: 1 addition & 1 deletion src/assets/js/util/loadConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function loadMissingConfig(s) {

function loadConfig() {
try {
config = ini.parse(fs.readFileSync(path.join(__dirname, "../config.ini"), "utf-8"));
config = ini.parse(fs.readFileSync(path.join(__dirname, "../../../../config.ini"), "utf-8"));
} catch (e) {
loadMissingConfig(config);
}
Expand Down

0 comments on commit f896db8

Please sign in to comment.