experience loading speeded up (before con. load.)

This commit is contained in:
Ota Prokopec 2023-04-06 15:43:58 +02:00
parent 3af85de747
commit 181462fcaa
1 changed files with 5 additions and 2 deletions

View File

@ -29,14 +29,17 @@
view = 'experience-preview'
})*/
onMount(async () => {
$: [gameData] = loadAsStore(params.gameurl)
$: if ($gameData) view = 'experience-preview'
/*onMount(async () => {
try {
$gameData = await load(params.gameurl)
view = 'experience-preview'
} catch (error) {
navigate('/error')
}
})
})*/
/*$: assets = $gameData?.questions
?.filter((q) => q.thumbnail !== null)