From 046af031d8f8d2f808352054d0b873681a9a7475 Mon Sep 17 00:00:00 2001 From: KOWX712 Date: Tue, 11 Feb 2025 21:21:11 +0800 Subject: [PATCH] complete read value logic --- module/webui/scripts/security_patch.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/module/webui/scripts/security_patch.js b/module/webui/scripts/security_patch.js index 45dfaa8..5279c1d 100644 --- a/module/webui/scripts/security_patch.js +++ b/module/webui/scripts/security_patch.js @@ -63,18 +63,26 @@ async function loadCurrentConfig() { if (line.startsWith('all=')) { allValue = line.split('=')[1] || null; if (allValue !== null) allPatchInput.value = allValue; + } else { + allValue = null; } if (line.startsWith('system=')) { systemValue = line.split('=')[1] || null; if (systemValue !== null) systemPatchInput.value = systemValue; + } else { + systemValue = null; } if (line.startsWith('boot=')) { bootValue = line.split('=')[1] || null; if (bootValue !== null) bootPatchInput.value = bootValue; + } else { + bootValue = null; } if (line.startsWith('vendor=')) { vendorValue = line.split('=')[1] || null; if (vendorValue !== null) vendorPatchInput.value = vendorValue; + } else { + vendorValue = null; } } }