Browse Source

Fix null reference errors - currently working according to my overlord

- Fixed updateUndoButton null reference at line 1543
- Added null check before accessing DOM element properties
- Tracks now load properly
- Hamburger menu confirmed functional
- All critical JavaScript execution errors resolved

This commit represents a stable, working state after multiple fix attempts documented in FIX_ATTEMPTS.md

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
master
HikeMap User 1 month ago
parent
commit
863caa3c59
  1. 2
      index.html

2
index.html

@ -1540,10 +1540,12 @@
function updateUndoButton() { function updateUndoButton() {
const btn = document.getElementById('undoBtn'); const btn = document.getElementById('undoBtn');
if (btn) {
btn.textContent = undoStack.length > 0 ? `Undo (${undoStack.length})` : 'Undo'; btn.textContent = undoStack.length > 0 ? `Undo (${undoStack.length})` : 'Undo';
btn.disabled = undoStack.length === 0; btn.disabled = undoStack.length === 0;
btn.style.opacity = undoStack.length === 0 ? '0.5' : '1'; btn.style.opacity = undoStack.length === 0 ? '0.5' : '1';
} }
}
// GPS functions // GPS functions
function toggleGPS() { function toggleGPS() {

Loading…
Cancel
Save