mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-09 11:41:56 -07:00
@@ -126,7 +126,7 @@ function isAppInitialized() {
|
||||
|
||||
lang_shouldBeCompletedCalls = getLangCode() == 'en_us' ? 1 : 2;
|
||||
|
||||
// check if each ajax call completed succesfully
|
||||
// check if each ajax call completed successfully
|
||||
for (const call_name of completedCalls_final) {
|
||||
if (getCache(CACHE_KEYS.initFlag(call_name)) != "true") {
|
||||
_isAppInitLog(`[isAppInitialized] waiting on ${call_name} (value: ${getCache(CACHE_KEYS.initFlag(call_name))})`);
|
||||
@@ -268,7 +268,7 @@ setTimeout(() => {
|
||||
// page refresh if configured
|
||||
const refreshTime = getSetting("UI_REFRESH");
|
||||
if (refreshTime && refreshTime !== "0" && refreshTime !== "") {
|
||||
console.log("Refreshing page becasue UI_REFRESH setting enabled.");
|
||||
console.log("Refreshing page because UI_REFRESH setting enabled.");
|
||||
newTimerRefreshData(clearCache, parseInt(refreshTime)*1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -590,6 +590,7 @@ function addOptionFromModalInput() {
|
||||
* A MAC is considered fake if it starts with:
|
||||
* - "FA:CE" (new synthetic devices)
|
||||
* - "00:1A" (legacy placeholder devices)
|
||||
* - "02:" (legacy placeholder devices)
|
||||
*
|
||||
* The check is case-insensitive.
|
||||
*
|
||||
@@ -600,8 +601,8 @@ function isFakeMac(macAddress) {
|
||||
// Normalize to lowercase for consistent comparison
|
||||
macAddress = macAddress.toLowerCase();
|
||||
|
||||
// Check if MAC starts with FA:CE or 00:1a
|
||||
return macAddress.startsWith("fa:ce") || macAddress.startsWith("00:1a");
|
||||
// Check if MAC starts with FA:CE or 00:1a or 02:
|
||||
return macAddress.startsWith("fa:ce") || macAddress.startsWith("00:1a") || macAddress.startsWith("02:");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user