only look to localStorage for our player guid WHEN WE'RE LOOKING UP OUR OWN NAME
daft error!
This commit is contained in:
parent
eeb24315fb
commit
7a6bf1eeef
@ -40,8 +40,10 @@ window.playerNameToGuid = function(playerName) {
|
||||
if (cachedGuid !== undefined) return cachedGuid;
|
||||
|
||||
// IITC needs our own player GUID, from a lookup by name. so we retrieve this from localstorage (if available)
|
||||
if (playerName == PLAYER.nickname) {
|
||||
cachedGuid = localStorage['PLAYER-'+PLAYER.nickname];
|
||||
if (cachedGuid !== undefined) return cachedGuid;
|
||||
}
|
||||
|
||||
var guid = null;
|
||||
$.each(Object.keys(sessionStorage), function(ind,key) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user