fix: remove asynchronous callback

This commit is contained in:
Mikkel Friis 2023-06-14 20:22:02 +02:00
parent aba4ddf2db
commit 1cae6718ea

View File

@ -24,7 +24,7 @@ export const App: FC<{}> = props =>
Nitro.bootstrap();
}
const handler = useCallback(async (event: NitroEvent) =>
const handler = useCallback((event: NitroEvent) =>
{
switch(event.type)
{
@ -82,8 +82,8 @@ export const App: FC<{}> = props =>
if(assetUrls && assetUrls.length) for(const url of assetUrls) urls.push(NitroConfiguration.interpolate(url));
const status = await GetAssetManager().downloadAssets(urls);
GetAssetManager().downloadAssets(urls)
.then((status) => {
if(status)
{
GetCommunication().init();
@ -95,6 +95,7 @@ export const App: FC<{}> = props =>
setIsError(true);
setMessage('Assets Failed');
}
})
return;
}
}