v0.13.9 - Fix ReferenceError: battleLog is not defined
- The vitals observer check 'battleLog && !battleLog.summary' referenced an undefined variable, throwing on every observer tick - Simplified to just check for pane_completion existence - This crash may have been interfering with state parsing on the observer
This commit is contained in:
parent
47c42ea5fe
commit
71da9b1214
3 changed files with 3 additions and 3 deletions
|
|
@ -3287,7 +3287,7 @@ function initializeBattle() {
|
||||||
refreshUI();
|
refreshUI();
|
||||||
updateConfigButton();
|
updateConfigButton();
|
||||||
// Check if battle ended (completion pane appeared)
|
// Check if battle ended (completion pane appeared)
|
||||||
if (document.getElementById('pane_completion') && battleLog && !battleLog.summary) {
|
if (document.getElementById('pane_completion')) {
|
||||||
finalizeBattleLog();
|
finalizeBattleLog();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -3287,7 +3287,7 @@ function initializeBattle() {
|
||||||
refreshUI();
|
refreshUI();
|
||||||
updateConfigButton();
|
updateConfigButton();
|
||||||
// Check if battle ended (completion pane appeared)
|
// Check if battle ended (completion pane appeared)
|
||||||
if (document.getElementById('pane_completion') && battleLog && !battleLog.summary) {
|
if (document.getElementById('pane_completion')) {
|
||||||
finalizeBattleLog();
|
finalizeBattleLog();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ function initializeBattle() {
|
||||||
refreshUI();
|
refreshUI();
|
||||||
updateConfigButton();
|
updateConfigButton();
|
||||||
// Check if battle ended (completion pane appeared)
|
// Check if battle ended (completion pane appeared)
|
||||||
if (document.getElementById('pane_completion') && battleLog && !battleLog.summary) {
|
if (document.getElementById('pane_completion')) {
|
||||||
finalizeBattleLog();
|
finalizeBattleLog();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue