mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
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:
@@ -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/');
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user