preliminary chat support
This commit is contained in:
@ -28,7 +28,7 @@ window.resolvePlayerNames = function() {
|
||||
playersToResolve = [];
|
||||
postAjax('getPlayersByGuids', d, function(dat) {
|
||||
$.each(dat.result, function(ind, player) {
|
||||
localStorage[player.guid] = player.nickname;
|
||||
window.setPlayerName(player.guid, player.nickname);
|
||||
// remove from array
|
||||
window.playersInResolving.splice(window.playersInResolving.indexOf(player.guid), 1);
|
||||
});
|
||||
@ -41,3 +41,8 @@ window.resolvePlayerNames = function() {
|
||||
window.playersToResolve.concat(p);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
window.setPlayerName = function(guid, nick) {
|
||||
localStorage[guid] = nick;
|
||||
}
|
||||
|
Reference in New Issue
Block a user