Commenting out network functionality pt2

This commit is contained in:
Frutescens 2024-07-31 13:22:24 -07:00
parent ba44238f8f
commit f00b84951c
1 changed files with 7 additions and 1 deletions

View File

@ -584,14 +584,19 @@ export class GameData {
}
const cachedRHData = cachedResponse ?? {};
//check to see whether cachedData or serverData is more up-to-date
/**
* Networking Code
*
if ( Object.keys(cachedRHData).length >= Object.keys(data).length ) {
return cachedRHData;
}
*/
return cachedRHData;
} else {
localStorage.setItem(`runHistoryData_${loggedInUser.username}`, JSON.parse(encrypt("", true)));
return {};
}
return data;
//return data;
} else {
let cachedResponse = localStorage.getItem(`runHistoryData_${loggedInUser.username}`);
if (cachedResponse) {
@ -639,6 +644,7 @@ export class GameData {
}
}
*/
return true;
}
parseSystemData(dataStr: string): SystemSaveData {