Suppress usage reporting in AP mode when no IP address
Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com>
This commit is contained in:
@@ -3708,6 +3708,12 @@ function checkVersionUpgrade(info) {
|
||||
if (versionCheckDone) return;
|
||||
versionCheckDone = true;
|
||||
|
||||
// Skip version check in AP mode (no internet connectivity)
|
||||
if (!info.ip || info.ip === '') {
|
||||
console.log('Skipping version check in AP mode (no IP address)');
|
||||
return;
|
||||
}
|
||||
|
||||
// Fetch version-info.json using existing /edit endpoint
|
||||
fetch('/edit?edit=/version-info.json', {
|
||||
method: 'get'
|
||||
|
||||
Reference in New Issue
Block a user