Browse Source

Auto-enable WASD mode for admins on login

GPS Test Mode (WASD movement) now automatically enables when an admin
user logs in, improving the development/testing experience.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
master
HikeMap User 1 month ago
parent
commit
1566b8c545
  1. 7
      index.html

7
index.html

@ -9205,6 +9205,13 @@
if (currentUser.is_admin) {
editTab.style.display = '';
adminTab.style.display = '';
// Auto-enable GPS Test Mode (WASD) for admins
const gpsTestToggle = document.getElementById('gpsTestModeToggle');
if (gpsTestToggle && !gpsTestMode) {
gpsTestToggle.checked = true;
toggleGpsTestMode(true);
}
} else {
editTab.style.display = 'none';
adminTab.style.display = 'none';

Loading…
Cancel
Save