minor fixes

This commit is contained in:
Francesco Grazioso 2024-05-04 18:37:53 +02:00
parent f47da0ae6e
commit b1747bd446
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ const router = createRouter({
try {
item = JSON.parse(<string>route.params.item);
} catch (error) {
item = {}; // or any default value you want to set
item = {}; // default value
}
return { item: item, imageUrl: route.params.imageUrl };
},

View File

@ -24,6 +24,7 @@ onMounted(async () => {
while (true) {
const {value, done} = await reader.read();
if (done) {
window.scrollTo(0, 0)
break;
}
if (item.type === 'TV_ANIME') {
@ -44,7 +45,6 @@ onMounted(async () => {
}
}
}
})
</script>