Fix language selector disappearing on navigation
- Remove missing theme-utils.js references from all HTML files - Fix double initialization in i18n.js causing language selector conflicts - Update service worker cache version to force fresh file loading - Language selector now persists when navigating via snowflake icon 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
3b48e804da
commit
c7a2bb6848
5 changed files with 1 additions and 6 deletions
|
@ -188,7 +188,6 @@
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<!-- Load shared theme utility -->
|
<!-- Load shared theme utility -->
|
||||||
<script src="theme-utils.js"></script>
|
|
||||||
<script src="utils.js"></script>
|
<script src="utils.js"></script>
|
||||||
<script src="admin.js"></script>
|
<script src="admin.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -9,7 +9,6 @@ class I18nService {
|
||||||
this.defaultLocale = 'en';
|
this.defaultLocale = 'en';
|
||||||
this.availableLocales = ['en', 'es-MX'];
|
this.availableLocales = ['en', 'es-MX'];
|
||||||
this.currentLocale = this.getStoredLocale() || this.detectBrowserLocale();
|
this.currentLocale = this.getStoredLocale() || this.detectBrowserLocale();
|
||||||
this.loadTranslations();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -173,8 +173,6 @@ placeholder="Enter address, intersection (e.g., Main St & Second St, City), or l
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
||||||
<!-- Load shared theme utility -->
|
|
||||||
<script src="theme-utils.js"></script>
|
|
||||||
<script src="utils.js"></script>
|
<script src="utils.js"></script>
|
||||||
<script src="app-mapbox.js"></script>
|
<script src="app-mapbox.js"></script>
|
||||||
|
|
||||||
|
|
|
@ -139,7 +139,6 @@
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<!-- Load shared theme utility -->
|
<!-- Load shared theme utility -->
|
||||||
<script src="theme-utils.js"></script>
|
|
||||||
<script>
|
<script>
|
||||||
// Initialize theme when page loads
|
// Initialize theme when page loads
|
||||||
document.addEventListener('DOMContentLoaded', initializeTheme);
|
document.addEventListener('DOMContentLoaded', initializeTheme);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Service Worker for Great Lakes Ice Report PWA
|
// Service Worker for Great Lakes Ice Report PWA
|
||||||
const CACHE_NAME = 'ice-report-v1';
|
const CACHE_NAME = 'ice-report-v2';
|
||||||
const OFFLINE_URL = '/offline.html';
|
const OFFLINE_URL = '/offline.html';
|
||||||
|
|
||||||
// Files to cache for offline functionality
|
// Files to cache for offline functionality
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue