Permalink
Browse files

check prefix /demo

  • Loading branch information...
1 parent ff7372a commit d2c2f22c9c9cc16e77631547b243a3b5b73de4d5 @michielbdejong committed Oct 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 server.js
View
@@ -31,7 +31,7 @@ var server = http.createServer(function (req, res) {
console.log(req.url);
if(req.url == '/sockjs-0.3.min.js') {
fileName = 'sockjs-0.3.min.js';
- } else if(req.url=='/demo') {
+ } else if(req.url.substring(0,5)=='/demo') {
fileName = 'demo.html';
} else {
fileName = 'index.html';

0 comments on commit d2c2f22

Please sign in to comment.