add notes to clientside js files

This commit is contained in:
ansuz
2016-01-13 05:43:58 -05:00
parent a8beeec0ad
commit 9fc44cdf0c
3 changed files with 9 additions and 1 deletions

View File

@@ -487,6 +487,7 @@ var toString = Message.toString = function (msg) {
var fromString = Message.fromString = function (str) {
var msg = str;
// FIXME factor this as you did on the serverside code
var unameLen = msg.substring(0,msg.indexOf(':'));
msg = msg.substring(unameLen.length+1);
var userName = msg.substring(0,Number(unameLen));