mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-01 05:52:17 +02:00
Commenting out network functionality pt2
This commit is contained in:
parent
e63a802a54
commit
3bc91e4562
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user