Commenting out network functionality pt2

This commit is contained in:
Frutescens 2024-07-31 13:22:24 -07:00
parent e63a802a54
commit 3bc91e4562

View File

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