fix: fwElement null error
moved the code to be only executed when a supported firmware is found
This commit is contained in:
@@ -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"],
|
||||||
|
|||||||
Reference in New Issue
Block a user