fix alert cache checks

This commit is contained in:
Azareal 2020-04-04 13:01:34 +10:00
parent d2fc2e26ea
commit 545a29a8cf
1 changed files with 3 additions and 1 deletions

View File

@ -369,7 +369,9 @@ function getExt(name) {
let sAlertList = localStorage.getItem("alertList");
let sAlertMapping = localStorage.getItem("alertMapping");
let sAlertCount = localStorage.getItem("alertCount");
if(sAlertList!=""&&sAlertMapping!=""&&sAlertCount!="") {
if(sAlertList!=null && sAlertList!="" &&
sAlertMapping!=null && sAlertMapping!="" &&sAlertCount!=null && sAlertCount!=""
) {
console.log("sAlertList",sAlertList)
console.log("sAlertMapping",sAlertMapping)
console.log("sAlertCount",sAlertCount)