Prettier format pending files
This commit is contained in:
parent
3327c6873d
commit
938e8662af
2 changed files with 33 additions and 25 deletions
|
|
@ -831,27 +831,30 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({
|
|||
clearClientAuthState();
|
||||
|
||||
// Fire and forget global sign-out - don't wait for it, don't block UI
|
||||
supabase.auth.signOut({ scope: "global" }).catch((error) => {
|
||||
console.warn("Global sign-out error:", error);
|
||||
// Still try to show a toast even if global fails
|
||||
try {
|
||||
aethexToast.info({
|
||||
title: "Signed out",
|
||||
description: "You have been signed out successfully (local only).",
|
||||
});
|
||||
} catch (e) {
|
||||
/* ignore */
|
||||
}
|
||||
}).then(() => {
|
||||
try {
|
||||
aethexToast.info({
|
||||
title: "Signed out",
|
||||
description: "You have been signed out successfully.",
|
||||
});
|
||||
} catch (e) {
|
||||
/* ignore */
|
||||
}
|
||||
});
|
||||
supabase.auth
|
||||
.signOut({ scope: "global" })
|
||||
.catch((error) => {
|
||||
console.warn("Global sign-out error:", error);
|
||||
// Still try to show a toast even if global fails
|
||||
try {
|
||||
aethexToast.info({
|
||||
title: "Signed out",
|
||||
description: "You have been signed out successfully (local only).",
|
||||
});
|
||||
} catch (e) {
|
||||
/* ignore */
|
||||
}
|
||||
})
|
||||
.then(() => {
|
||||
try {
|
||||
aethexToast.info({
|
||||
title: "Signed out",
|
||||
description: "You have been signed out successfully.",
|
||||
});
|
||||
} catch (e) {
|
||||
/* ignore */
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
const updateProfile = async (updates: Partial<AethexUserProfile>) => {
|
||||
|
|
|
|||
13
index.html
13
index.html
|
|
@ -189,18 +189,23 @@
|
|||
window.discordSdkReady = false;
|
||||
|
||||
// Only attempt to load Discord SDK if we're in the Discord Activity route
|
||||
window.loadDiscordSDK = async function() {
|
||||
window.loadDiscordSDK = async function () {
|
||||
if (window.discordSdkReady) return;
|
||||
try {
|
||||
const { DiscordSDK } = await import('https://cdn.discordapp.com/assets/embedded/lazyload.min.js');
|
||||
const { DiscordSDK } = await import(
|
||||
"https://cdn.discordapp.com/assets/embedded/lazyload.min.js"
|
||||
);
|
||||
if (DiscordSDK) {
|
||||
window.DiscordSDK = new DiscordSDK({
|
||||
clientId: '578971245454950421',
|
||||
clientId: "578971245454950421",
|
||||
});
|
||||
window.discordSdkReady = true;
|
||||
}
|
||||
} catch (e) {
|
||||
console.warn('Discord SDK loading skipped (not in Activity context):', e.message);
|
||||
console.warn(
|
||||
"Discord SDK loading skipped (not in Activity context):",
|
||||
e.message,
|
||||
);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue