From e8280afecd7acef125a717696b442f5687cc11ea Mon Sep 17 00:00:00 2001 From: ArabPixel <70905018+ArabPixel@users.noreply.github.com> Date: Sun, 10 Aug 2025 23:57:51 +0200 Subject: [PATCH] fix: fwElement null error moved the code to be only executed when a supported firmware is found --- includes/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/js/index.js b/includes/js/index.js index acc163b..8721f29 100644 --- a/includes/js/index.js +++ b/includes/js/index.js @@ -774,6 +774,8 @@ function CheckFW() { if (ps4Regex.test(userAgent)) { if (fwVersion >= 7.00 && fwVersion <= 9.60) { document.getElementById('PS4FW').style.color = 'green'; +let fwElement = "fw"+fwVersion.replace('.',''); + document.getElementById(fwElement).classList.add('fwSelected'); } else { document.getElementById('PS4FW').style.color = 'red'; @@ -783,8 +785,6 @@ function CheckFW() { }); } ps4fw = fwVersion; - let fwElement = "fw"+fwVersion.replace('.',''); - document.getElementById(fwElement).classList.add('fwSelected'); // Display only Compatible GoldHENs const GoldHENsOption = { "9.60": ["GHv2.3Fw755", "GHv2.3Fw702"],