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:
2026-07-12 17:33:08 +02:00
parent e4bb48d9ea
commit 4bd29a207a
4 changed files with 28 additions and 5 deletions
+2
View File
@@ -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);
}