Merge pull request #20 from tgpethan/consoleHelper-formatting

Sort out consoleHelper's Config formatting
This commit is contained in:
the-basic-geek 2020-03-26 16:30:05 +00:00 committed by GitHub
commit 87410c31ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ if (!fs.existsSync(__dirname + BASE_PATH)) {
} }
// Creates the consoleHelper config file // Creates the consoleHelper config file
if (!fs.existsSync(__dirname + BASE_PATH + "/config.json")) { if (!fs.existsSync(__dirname + BASE_PATH + "/config.json")) {
fs.writeFileSync(__dirname + BASE_PATH + "/config.json", JSON.stringify({"24hour":true})); fs.writeFileSync(__dirname + BASE_PATH + "/config.json", `{\n\t"24hour":true\n}`);
console.log(`[consoleHelper] Made consoleHelper config file`); console.log(`[consoleHelper] Made consoleHelper config file`);
} }