+2
-3
frontend/src/lib/components/ProfileMenu.svelte
+2
-3
frontend/src/lib/components/ProfileMenu.svelte
···
2
2
import { portal } from 'svelte-portal';
3
3
import { onMount } from 'svelte';
4
4
import { page } from '$app/stores';
5
-
import { invalidateAll } from '$app/navigation';
6
5
import { queue } from '$lib/queue.svelte';
7
6
import { preferences, type Theme } from '$lib/preferences.svelte';
8
7
import { API_URL } from '$lib/config';
···
152
151
credentials: 'include'
153
152
});
154
153
if (response.ok) {
155
-
await invalidateAll();
154
+
window.location.reload();
156
155
} else {
157
156
console.error('logout with switch failed');
158
157
}
···
186
185
headers: { 'Content-Type': 'application/json' },
187
186
body: JSON.stringify({ target_did: account.did })
188
187
});
189
-
await invalidateAll();
188
+
window.location.reload();
190
189
} catch (e) {
191
190
console.error('switch account failed:', e);
192
191
} finally {
+2
-3
frontend/src/lib/components/UserMenu.svelte
+2
-3
frontend/src/lib/components/UserMenu.svelte
···
1
1
<script lang="ts">
2
2
import type { User, LinkedAccount } from '$lib/types';
3
3
import { API_URL } from '$lib/config';
4
-
import { invalidateAll } from '$app/navigation';
5
4
import HandleAutocomplete from './HandleAutocomplete.svelte';
6
5
import { logout } from '$lib/logout.svelte';
7
6
···
74
73
credentials: 'include'
75
74
});
76
75
if (response.ok) {
77
-
await invalidateAll();
76
+
window.location.reload();
78
77
} else {
79
78
console.error('logout with switch failed');
80
79
}
···
108
107
headers: { 'Content-Type': 'application/json' },
109
108
body: JSON.stringify({ target_did: account.did })
110
109
});
111
-
await invalidateAll();
110
+
window.location.reload();
112
111
} catch (e) {
113
112
console.error('switch account failed:', e);
114
113
} finally {