This commit is contained in:
2023-08-09 16:46:07 +03:00
parent e36af0a49c
commit 1207cdd105

View File

@@ -8,8 +8,14 @@ function getNewMessageSession (){
for(var i = 0;i < o.length;i++){ for(var i = 0;i < o.length;i++){
r[o[i].split("=")[0]] = o[i].split("=")[1]; r[o[i].split("=")[0]] = o[i].split("=")[1];
} }
let prs = JSON.parse(r['user_alerts']) let prs_ = null
let prs_ = JSON.parse(prs) if (r['user_alerts']){
let prs = JSON.parse(r['user_alerts'])
prs_ = JSON.parse(prs)
} else {
//
}
// if (prs === "{'new_message': True}"){ // if (prs === "{'new_message': True}"){
// prs = { // prs = {
// 'new_message' : 'True' // 'new_message' : 'True'
@@ -20,6 +26,7 @@ function getNewMessageSession (){
// } // }
// } // }
// b = cookieS // b = cookieS
// let b = CookieStore.getAll()
return prs_; return prs_;
} }