mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
dont make local variables global
This commit is contained in:
parent
1932d240e5
commit
5d15f655f0
11 changed files with 14 additions and 14 deletions
|
@ -62,7 +62,7 @@ function init() {
|
|||
var resource = exports.baseURL.substring(1) + 'socket.io';
|
||||
|
||||
//build up the socket io connection
|
||||
socket = io.connect(url, {resource: resource});
|
||||
var socket = io.connect(url, {resource: resource});
|
||||
|
||||
//send the ready message once we're connected
|
||||
socket.on('connect', function()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue