mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix reload problem
This commit is contained in:
1 parent
435ceba9f6
commit
092e7ceae0
2 files changed
+3
-5
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { isMultiRegionSupported, VARS } from '$lib/system';
|
||||
import { registerImpersonationClients } from '$lib/appwrite/impersonation';
|
||||
import { registerImpersonationClients, restoreImpersonation } from '$lib/appwrite/impersonation';
|
||||
import {
|
||||
Account,
|
||||
Assistant,
|
||||
@@ -88,6 +88,7 @@ if (!building) {
|
||||
clientProject,
|
||||
clientRealtime
|
||||
]);
|
||||
restoreImpersonation();
|
||||
}
|
||||
|
||||
const sdkForProject = {
|
||||
|
||||
@@ -15,8 +15,7 @@
|
||||
import { loading } from '$routes/store';
|
||||
import {
|
||||
impersonationRevision,
|
||||
readImpersonationTargetUserId,
|
||||
restoreImpersonation
|
||||
readImpersonationTargetUserId
|
||||
} from '$lib/appwrite/impersonation';
|
||||
import { headerAlert } from '$lib/stores/headerAlert';
|
||||
import ImpersonationBanner from '$lib/components/impersonation/banner.svelte';
|
||||
@@ -36,8 +35,6 @@
|
||||
}
|
||||
|
||||
onMount(async () => {
|
||||
restoreImpersonation();
|
||||
|
||||
headerAlert.add({
|
||||
id: 'impersonation',
|
||||
component: ImpersonationBanner,
|
||||
|
||||
Reference in new issue
Block a user