Music Path is an environment variable

This commit is contained in:
Rekai Musuka
2019-05-21 00:53:30 -05:00
parent 26f4a7d88b
commit 03c0af9151
7 changed files with 33 additions and 7 deletions

View File

@@ -71,7 +71,7 @@ export default class Body extends React.Component {
};
if (!Settings.has("tableJSON")) {
let tableJSON = await generate("/home/paoda/Downloads/Music", template);
let tableJSON = await generate(process.env.MUSIC_PATH, template);
console.log("Initialize: ", tableJSON)
this.setState({ table: tableJSON });

View File

@@ -61,7 +61,7 @@ export default class SettingsManager extends Modal {
if (Settings.has("tableJSON")) Settings.set("tableJSON", template);
else console.info("There was no Table Saved to Delete!")
const tableJSON = await generate("/home/paoda/Downloads/Music", template);
const tableJSON = await generate(process.env.MUSIC_PATH, template);
Emitter.emit("newTable", tableJSON);