From f70dcd3c9f26c09169d8f58443898661d9fea179 Mon Sep 17 00:00:00 2001 From: "Eric J. Duran" Date: Tue, 16 Oct 2012 17:48:34 -0400 Subject: [PATCH] Adding images directory to staticDir so we can search images --- images/readme.md | 1 + plugin/speakernotes/index.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 images/readme.md diff --git a/images/readme.md b/images/readme.md new file mode 100644 index 0000000..c3df390 --- /dev/null +++ b/images/readme.md @@ -0,0 +1 @@ +Images directory diff --git a/plugin/speakernotes/index.js b/plugin/speakernotes/index.js index e8c8023..17314f3 100644 --- a/plugin/speakernotes/index.js +++ b/plugin/speakernotes/index.js @@ -21,7 +21,7 @@ io.sockets.on('connection', function(socket) { }); app.configure(function() { - [ 'css', 'js', 'plugin', 'lib' ].forEach(function(dir) { + [ 'css', 'js', 'images', 'plugin', 'lib' ].forEach(function(dir) { app.use('/' + dir, staticDir(opts.baseDir + dir)); }); }); @@ -43,8 +43,8 @@ app.get("/notes/:socketId", function(req, res) { // Actually listen app.listen(opts.port || null); -var brown = '\033[33m', - green = '\033[32m', +var brown = '\033[33m', + green = '\033[32m', reset = '\033[0m'; var slidesLocation = "http://localhost" + ( opts.port ? ( ':' + opts.port ) : '' );