Merge branch 'adarqui'

This commit is contained in:
Julian Lam
2013-10-05 22:47:59 -04:00
3 changed files with 6 additions and 9 deletions

View File

@@ -139,10 +139,10 @@ var opts = {
for(var v in clients) {
var client = clients[v];
if(client.oEmit != client.emit)
if(client.oEmit != undefined && client.oEmit != client.emit)
client.emit = client.oEmit;
if(client.$oEmit != client.$emit)
if(client.$oEmit != undefined && client.$oEmit != client.$emit)
client.$emit = client.$oEmit;
}
}

View File

@@ -156,7 +156,7 @@ var express = require('express'),
app.use(function (req, res, next) {
res.status(404);
if (path.dirname(req.url) === '/src/forum') {
if (path.dirname(req.url).slice(0, 10) === '/src/forum') {
// Handle missing client-side scripts
res.type('text/javascript').send(200, '');
} else if (req.accepts('html')) {