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;
|
if (cachedGuid !== undefined) return cachedGuid;
|
||||||
|
|
||||||
// IITC needs our own player GUID, from a lookup by name. so we retrieve this from localstorage (if available)
|
// IITC needs our own player GUID, from a lookup by name. so we retrieve this from localstorage (if available)
|
||||||
cachedGuid = localStorage['PLAYER-'+PLAYER.nickname];
|
if (playerName == PLAYER.nickname) {
|
||||||
if (cachedGuid !== undefined) return cachedGuid;
|
cachedGuid = localStorage['PLAYER-'+PLAYER.nickname];
|
||||||
|
if (cachedGuid !== undefined) return cachedGuid;
|
||||||
|
}
|
||||||
|
|
||||||
var guid = null;
|
var guid = null;
|
||||||
$.each(Object.keys(sessionStorage), function(ind,key) {
|
$.each(Object.keys(sessionStorage), function(ind,key) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user