misc: clean up actions

This commit is contained in:
Xylight committed 2024-07-19 17:30:28 -07:00
1 parent f38011e0c6
commit c0b93f65a9
5 files changed
+124 -40

No files matched your search

@@ -64,16 +64,17 @@
})
}
$resumables = [
...$resumables,
{
id: Math.floor(Math.random() * 1000000),
name: post.post_view.post.name,
type: 'post',
url: $page.url.toString(),
avatar: post.post_view.post.thumbnail_url,
},
]
if (!$resumables.find((r) => r.url == $page.url.toString()))
$resumables = [
...$resumables,
{
id: Math.floor(Math.random() * 1000000),
name: post.post_view.post.name,
type: 'post',
url: $page.url.toString(),
avatar: post.post_view.post.thumbnail_url,
},
]
})
afterNavigate(async () => {