|
|
@ -64,8 +64,10 @@ export const Preload = () => { |
|
|
|
async function loadStorage() { |
|
|
|
async function loadStorage() { |
|
|
|
await remixFileSystems.current.addFileSystem(remixIndexedDB.current) |
|
|
|
await remixFileSystems.current.addFileSystem(remixIndexedDB.current) |
|
|
|
await remixFileSystems.current.addFileSystem(localStorageFileSystem.current) |
|
|
|
await remixFileSystems.current.addFileSystem(localStorageFileSystem.current) |
|
|
|
await remixIndexedDB.current.checkWorkspaces() |
|
|
|
remixIndexedDB.current.loaded && await remixIndexedDB.current.checkWorkspaces() |
|
|
|
remixIndexedDB.current.hasWorkSpaces ? await setFileSystems() : setShowDownloader(true) |
|
|
|
localStorageFileSystem.current.loaded && await localStorageFileSystem.current.checkWorkspaces() |
|
|
|
|
|
|
|
remixIndexedDB.current.loaded && ( (remixIndexedDB.current.hasWorkSpaces || !localStorageFileSystem.current.hasWorkSpaces)? await setFileSystems():setShowDownloader(true)) |
|
|
|
|
|
|
|
!remixIndexedDB.current.loaded && await setFileSystems() |
|
|
|
} |
|
|
|
} |
|
|
|
loadStorage() |
|
|
|
loadStorage() |
|
|
|
}, []) |
|
|
|
}, []) |
|
|
|