Valtio and new tab menu

This commit is contained in:
aeroreyna
2022-03-24 22:00:00 -07:00
parent 0bee9204f2
commit 296c153b47
13 changed files with 93 additions and 66 deletions

4
API.js
View File

@@ -59,7 +59,7 @@ let getProfileFromCache = async (id, refresh=false) => {
return userNameCache[id];
if (working_on[id] && !refresh)
return working_on[id];
console.log(id, "not in cache, getting...")
//console.log(id, "not in cache, getting...")
working_on[id] = getCall("/user/" + id)
return working_on[id];
}
@@ -67,7 +67,7 @@ let getProfileFromCache = async (id, refresh=false) => {
const API = {
isLoggedIn: async () => {
return getCall().then((data) => {
console.log("isLoggedIn", data)
//console.log("isLoggedIn", data)
if (data && data.status && data.status === 'ok') {
CurrentUserId = data.userInfo._id;
CurrentProfile = data.profileInfo._id;