fix: fwElement null error

moved the code to be only executed when a supported firmware is found
This commit is contained in:
ArabPixel
2025-08-10 23:57:51 +02:00
committed by GitHub
parent 2688caca6e
commit e8280afecd

View File

@@ -774,6 +774,8 @@ function CheckFW() {
if (ps4Regex.test(userAgent)) { if (ps4Regex.test(userAgent)) {
if (fwVersion >= 7.00 && fwVersion <= 9.60) { if (fwVersion >= 7.00 && fwVersion <= 9.60) {
document.getElementById('PS4FW').style.color = 'green'; document.getElementById('PS4FW').style.color = 'green';
let fwElement = "fw"+fwVersion.replace('.','');
document.getElementById(fwElement).classList.add('fwSelected');
} else { } else {
document.getElementById('PS4FW').style.color = 'red'; document.getElementById('PS4FW').style.color = 'red';
@@ -783,8 +785,6 @@ function CheckFW() {
}); });
} }
ps4fw = fwVersion; ps4fw = fwVersion;
let fwElement = "fw"+fwVersion.replace('.','');
document.getElementById(fwElement).classList.add('fwSelected');
// Display only Compatible GoldHENs // Display only Compatible GoldHENs
const GoldHENsOption = { const GoldHENsOption = {
"9.60": ["GHv2.3Fw755", "GHv2.3Fw702"], "9.60": ["GHv2.3Fw755", "GHv2.3Fw702"],