From 4d525eba885373ba2ad2c21f36f98fc82334ee5c Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Thu, 6 Nov 2014 11:48:10 +0000 Subject: [PATCH] Fix config --- defaults/config.js | 5 +++-- src/command-line/index.js | 8 ++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/defaults/config.js b/defaults/config.js index f0cca9b..4906003 100644 --- a/defaults/config.js +++ b/defaults/config.js @@ -170,13 +170,14 @@ module.exports = { // join: "#foo, #shout-irc" }, + // // Set socket.io transports // // @type array - // @default ['polling', 'websocket'] + // @default ["polling', "websocket"] // - transports: ['polling', 'websocket'] + transports: ["polling", "websocket"], // // Run Shout with HTTPS support. diff --git a/src/command-line/index.js b/src/command-line/index.js index 40ebcdb..171ed05 100644 --- a/src/command-line/index.js +++ b/src/command-line/index.js @@ -24,8 +24,12 @@ if (program.home) { var config = Helper.HOME + "/config.js"; if (!fs.existsSync(config)) { mkdirp.sync(Helper.HOME); - fs.writeFileSync(config, fs.readFileSync(__dirname + "/../../defaults/config.js")); - console.log("Config created:" + config); + fs.writeFileSync( + config, + fs.readFileSync(__dirname + "/../../defaults/config.js") + ); + console.log("Config created:"); + console.log(config); } program.parse(argv.args);