From 545a29a8cf2bb9920f79b43f1d47f05bba1b44a3 Mon Sep 17 00:00:00 2001 From: Azareal Date: Sat, 4 Apr 2020 13:01:34 +1000 Subject: [PATCH] fix alert cache checks --- public/global.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/global.js b/public/global.js index 32b73f61..9e6c6803 100644 --- a/public/global.js +++ b/public/global.js @@ -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)