mirror of
https://github.com/danbulant/node-x11
synced 2026-06-20 23:21:02 +00:00
Merge pull request #8 from santigimeno/master
Declare cookieNum with var so it is not global
This commit is contained in:
commit
86152f7aaf
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ module.exports = function( display, host, cb )
|
||||||
}
|
}
|
||||||
|
|
||||||
var auth = parseXauth(data);
|
var auth = parseXauth(data);
|
||||||
for (cookieNum in auth)
|
for (var cookieNum in auth)
|
||||||
{
|
{
|
||||||
var cookie = auth[cookieNum];
|
var cookie = auth[cookieNum];
|
||||||
if (cookie.display == display && cookie.address == host)
|
if (cookie.display == display && cookie.address == host)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue