experience loading speeded up (before con. load.)
This commit is contained in:
parent
3af85de747
commit
181462fcaa
|
@ -29,14 +29,17 @@
|
||||||
view = 'experience-preview'
|
view = 'experience-preview'
|
||||||
})*/
|
})*/
|
||||||
|
|
||||||
onMount(async () => {
|
$: [gameData] = loadAsStore(params.gameurl)
|
||||||
|
$: if ($gameData) view = 'experience-preview'
|
||||||
|
|
||||||
|
/*onMount(async () => {
|
||||||
try {
|
try {
|
||||||
$gameData = await load(params.gameurl)
|
$gameData = await load(params.gameurl)
|
||||||
view = 'experience-preview'
|
view = 'experience-preview'
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
navigate('/error')
|
navigate('/error')
|
||||||
}
|
}
|
||||||
})
|
})*/
|
||||||
|
|
||||||
/*$: assets = $gameData?.questions
|
/*$: assets = $gameData?.questions
|
||||||
?.filter((q) => q.thumbnail !== null)
|
?.filter((q) => q.thumbnail !== null)
|
||||||
|
|
Loading…
Reference in New Issue