Browse Source

Adding images directory to staticDir so we can search images

Eric J. Duran 12 years ago
parent
commit
f70dcd3c9f
2 changed files with 4 additions and 3 deletions
  1. 1 0
      images/readme.md
  2. 3 3
      plugin/speakernotes/index.js

+ 1 - 0
images/readme.md

@@ -0,0 +1 @@
+Images directory

+ 3 - 3
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 ) : '' );