Fixes #20: Fix JSON parse errors and empty equipment tab
- Replace JSON.parse() with repairJSON() in desktop.js and mobile.js to handle malformed JSON from infoBox/userStats data - Add defensive initialization in renderEquipment(): ensure showEquipment defaults to true and equipment data structure exists - Add explicit renderEquipment() call during initialization
This commit is contained in:
@@ -349,6 +349,8 @@ jQuery(async () => {
|
||||
initThoughtBasedExpressions();
|
||||
updateFabWidgets();
|
||||
updateStripWidgets();
|
||||
// Explicit initial render of equipment to ensure it's visible
|
||||
renderEquipment();
|
||||
} catch (error) {
|
||||
console.error('[RPG Companion] Chat data load failed, using defaults:', error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user