Skip to content

Commit 21aefed

Browse files
committed
More changes to fix staging
1 parent 9a6d533 commit 21aefed

4 files changed

Lines changed: 12 additions & 13 deletions

File tree

extension/wxt.config.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,7 @@ export default defineConfig({
77
manifest: {
88
name: "Parakeet Soundboard",
99
version: "1.0",
10-
permissions: [
11-
"scripting",
12-
"tabs",
13-
"activeTab",
14-
"storage",
15-
"unlimitedStorage",
16-
"declarativeContent",
17-
],
10+
permissions: ["scripting", "activeTab", "storage", "unlimitedStorage"],
1811
host_permissions: ["https://meet.google.com/*"],
1912
web_accessible_resources: [
2013
{
@@ -27,6 +20,7 @@ export default defineConfig({
2720
matches: ["https://meet.google.com/*"],
2821
},
2922
],
23+
key: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA13fgU4joRpSr2xzzqS7y1XB4EvJquG95jKV2seh5DKMKWPN8ULHON3npeikAVyffGG48nKFAsMml0detH8fxMozfAMeBxeET32ZMoJdspZKYn22AYCIy+RBMRZQKeTlckjI5lrpJ/mS206IkzBtZ3d9LGfL7tkjS/ejV/5yKFyAOBlHLbZOGIcYnOxdgxDszfWEnl/L2qk58ODuM4I/c5gIB+qKs4d0lvUmIkRKgKq5T92c1NLKTIdxybKpaUN8MDT+5wxswCVTE1DdymEbOYr18f7nvCH63wlVNkAwW7ky63XHBo7lypWkQysXQ0PW6YTEYeHnMbjb/P9ax4IG4rwIDAQAB",
3024
},
3125
dev: {
3226
server: {

ui/src/components/LogoutPage.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ const LogoutPage = () => {
77
const navigate = useNavigate();
88

99
useEffect(() => {
10-
logout();
11-
window.postMessage({ command: "parakeet-openPopup" }, origin);
12-
navigate("/");
10+
async function startLogout() {
11+
await logout();
12+
window.postMessage({ command: "parakeet-openPopup" }, origin);
13+
navigate("/");
14+
}
15+
startLogout();
1316
}, [logout, navigate]);
1417

1518
return <></>;

ui/src/components/reuseable/login.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,10 @@ const LogoutPopover = ({
296296
<div className="confirmDeleteButtons">
297297
<Button
298298
className="dangerButton"
299-
onClick={logout}
299+
onClick={() => {
300+
logout();
301+
window.location.reload();
302+
}}
300303
disabled={loginLoading}
301304
>
302305
{loginLoading ? <UpdateIcon className="spinIcon" /> : "Log Out"}

ui/src/util/auth/provider.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({
165165
localStorage.removeItem("jwt");
166166
window.postMessage({ command: "parakeet-removeAuthToken" }, origin);
167167
queryClient.setQueryData(["auth", "user"], null);
168-
window.location.reload();
169168
}, []);
170169

171170
const value: AuthContextValue = {

0 commit comments

Comments
 (0)