From 13cc8d8c5bca88a3fffc46fdda1c402631a62d1f Mon Sep 17 00:00:00 2001 From: yxshv Date: Sat, 13 Apr 2024 23:15:04 +0530 Subject: [PATCH] generate --- apps/extension/src/SideBar.tsx | 2 +- apps/extension/src/background.ts | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/extension/src/SideBar.tsx b/apps/extension/src/SideBar.tsx index b4f50207..677d6bf4 100644 --- a/apps/extension/src/SideBar.tsx +++ b/apps/extension/src/SideBar.tsx @@ -80,7 +80,7 @@ function SideBar({ jwt }: { jwt: string }) { const fetchSpaces = async () => { setLoading(true) chrome.runtime.sendMessage({ type: "fetchSpaces" }, (resp) => { - console.log(resp) + console.log('response',resp) setSpaces(resp) setLoading(false) }); diff --git a/apps/extension/src/background.ts b/apps/extension/src/background.ts index 0c8387b7..86f324cd 100644 --- a/apps/extension/src/background.ts +++ b/apps/extension/src/background.ts @@ -69,7 +69,7 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { })(); } else if (request.type === "fetchSpaces") { - const run = () => chrome.storage.local.get(["jwt"], async ({ jwt }) => { + chrome.storage.local.get(["jwt"], async ({ jwt }) => { if (!jwt) { console.error("No JWT found"); return; @@ -91,9 +91,6 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { }); - run() - - return true;