Leverage node.js serving of the client side files

Make sure we can load io.js from node (window check)
This commit is contained in:
Guillermo Rauch
2010-09-09 14:05:06 -07:00
parent 9a4bb0076d
commit 13c638178a
2 changed files with 5 additions and 1 deletions

View File

@@ -20,4 +20,6 @@ this.io = {
}
};
if ('jQuery' in this) jQuery.io = this.io;
if ('jQuery' in this) jQuery.io = this.io;
if (typeof window != 'undefined') this.io.setPath('/socket.io/');

View File

@@ -22,6 +22,8 @@ this.io = {
};
if ('jQuery' in this) jQuery.io = this.io;
if (typeof window != 'undefined') this.io.setPath('/socket.io/');
/**
* Socket.IO client
*