Update socket.js
fix syntax
This commit is contained in:
parent
16f7fa5929
commit
22dd5c149c
|
@ -69,7 +69,7 @@ lichess.StrongSocket = function(url, version, settings) {
|
|||
var msg = { t: t };
|
||||
if (d !== undefined) {
|
||||
if (o.withLag) d.l = Math.round(averageLag);
|
||||
if (millis in o) d.s = Math.floor(o.millis * 0.1).toString(36);
|
||||
if ('millis' in o) d.s = Math.floor(o.millis * 0.1).toString(36);
|
||||
msg.d = d;
|
||||
}
|
||||
if (o.ackable) ackable.register(t, d);
|
||||
|
|
Loading…
Reference in a new issue