Fix: restaurer topbar-logo.js original (supprimer fetch config)
Le fetch get_config_sqlite dans topbar-logo.js au DOMContentLoaded saturait les 6 connexions par domaine du navigateur. Retour au topbar-logo.js v1.4.4 d'origine. Le badge hotspot est maintenant gere dans le window.onload de wifi.html. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -464,6 +464,11 @@ function wifi_scan(){
|
||||
document.getElementById('card-wifi-scan').style.display = '';
|
||||
}
|
||||
|
||||
// Update hotspot badge in sidebar
|
||||
document.querySelectorAll('.sidebar-hotspot-badge').forEach(function(badge) {
|
||||
badge.style.display = (data.WIFI_status === 'hotspot') ? '' : 'none';
|
||||
});
|
||||
|
||||
$.ajax({
|
||||
url: 'launcher.php?type=RTC_time',
|
||||
dataType: 'text',
|
||||
|
||||
Reference in New Issue
Block a user