Skip to content

Commit

Permalink
generate
Browse files Browse the repository at this point in the history
  • Loading branch information
yxshv committed Apr 13, 2024
1 parent a7d72c7 commit 13cc8d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/extension/src/SideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
});
Expand Down
5 changes: 1 addition & 4 deletions apps/extension/src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -91,9 +91,6 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {

});

run()


return true;


Expand Down

0 comments on commit 13cc8d8

Please sign in to comment.