mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-12-03 21:30:03 -05:00
add sections for enabled and disabled interfaces
This commit is contained in:
parent
46f28920f5
commit
de3fa070fd
3 changed files with 225 additions and 157 deletions
|
|
@ -131,6 +131,12 @@ class Utils {
|
|||
}).join(''));
|
||||
}
|
||||
|
||||
static isInterfaceEnabled(iface) {
|
||||
const rawValue = iface.enabled ?? iface.interface_enabled;
|
||||
const value = rawValue?.toLowerCase();
|
||||
return value === "on" || value === "yes" || value === "true";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default Utils;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue