fix: potential race condition on app load when migration (#2977)

Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
Peng XiaoandAlex Yang authored and GitHub committed 2023-07-03 09:40:02 +00:00
1 parent ee2ab4086f
commit 901fc87716
3 files changed
+11 -8

No files matched your search

+6
View File
@@ -35,6 +35,12 @@ declare global {
events: any;
}
interface WindowEventMap {
'migration-done': CustomEvent;
}
// eslint-disable-next-line no-var
var $migrationDone: boolean;
// eslint-disable-next-line no-var
var platform: Platform | undefined;
// eslint-disable-next-line no-var