bug fix.
This commit is contained in:
@@ -752,6 +752,15 @@ function CheckFW() {
|
|||||||
// Highlight firmware in about popup
|
// Highlight firmware in about popup
|
||||||
let fwElement = "fw"+fwVersion.replace('.','');
|
let fwElement = "fw"+fwVersion.replace('.','');
|
||||||
document.getElementById(fwElement).classList.add('fwSelected');
|
document.getElementById(fwElement).classList.add('fwSelected');
|
||||||
|
} else {
|
||||||
|
document.getElementById('PS4FW').style.color = 'red';
|
||||||
|
|
||||||
|
elementsToHide.forEach(id => {
|
||||||
|
const el = document.getElementById(id);
|
||||||
|
if (el) el.style.display = 'none';
|
||||||
|
});
|
||||||
|
}
|
||||||
|
ps4fw = fwVersion;
|
||||||
// Display only Compatible GoldHENs
|
// Display only Compatible GoldHENs
|
||||||
const GoldHENsOption = {
|
const GoldHENsOption = {
|
||||||
"9.60": ["GHv2.3Fw755", "GHv2.3Fw702"],
|
"9.60": ["GHv2.3Fw755", "GHv2.3Fw702"],
|
||||||
@@ -774,15 +783,7 @@ function CheckFW() {
|
|||||||
const el = document.getElementById(id);
|
const el = document.getElementById(id);
|
||||||
if (el) el.remove();
|
if (el) el.remove();
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
document.getElementById('PS4FW').style.color = 'red';
|
|
||||||
|
|
||||||
elementsToHide.forEach(id => {
|
|
||||||
const el = document.getElementById(id);
|
|
||||||
if (el) el.style.display = 'none';
|
|
||||||
});
|
|
||||||
}
|
|
||||||
ps4fw = fwVersion;
|
|
||||||
} else {
|
} else {
|
||||||
platform = 'Unknown platform';
|
platform = 'Unknown platform';
|
||||||
|
|
||||||
@@ -792,11 +793,11 @@ function CheckFW() {
|
|||||||
else if (/Windows/.test(userAgent)) platform = 'Windows';
|
else if (/Windows/.test(userAgent)) platform = 'Windows';
|
||||||
else if (/Linux/.test(userAgent)) platform = 'Linux';
|
else if (/Linux/.test(userAgent)) platform = 'Linux';
|
||||||
|
|
||||||
// document.getElementById('PS4FW').style.color = 'red';
|
document.getElementById('PS4FW').style.color = 'red';
|
||||||
// elementsToHide.forEach(id => {
|
elementsToHide.forEach(id => {
|
||||||
// const el = document.getElementById(id);
|
const el = document.getElementById(id);
|
||||||
// if (el) el.style.display = 'none';
|
if (el) el.style.display = 'none';
|
||||||
// });
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user