Fixup - can't name a variable "interface" in JS.

This commit is contained in:
Herbert Wolverson 2025-01-22 15:11:59 -06:00
parent 3c75c9c73d
commit 286b126e55

View File

@ -12,11 +12,11 @@ function validateConfig() {
}
} else if (document.getElementById('singleInterfaceMode').checked) {
// Validate single interface mode fields
const interface = document.getElementById('interface').value.trim();
const interfaceName = document.getElementById('interface').value.trim();
const internetVlan = parseInt(document.getElementById('internetVlan').value);
const networkVlan = parseInt(document.getElementById('networkVlan').value);
if (!interface) {
if (!interfaceName) {
alert("Interface name is required in single interface mode");
return false;
}