mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-13 18:40:20 +00:00
fix: play button not working when nothing is loaded
This commit is contained in:
parent
df514c0fbe
commit
d032ae36d1
2 changed files with 5 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ui",
|
||||
"version": "6.4.14",
|
||||
"version": "6.4.15",
|
||||
"license": "BUSL-1.1",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@9.14.4",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
<script lang='ts' context='module'>
|
||||
import { writable } from 'svelte/store'
|
||||
export const playEp = writable((media: Media, episode: number) => {})
|
||||
|
||||
import { searchStore } from '$lib'
|
||||
|
||||
export const playEp = writable((media: Media, episode: number) => searchStore.set({ media, episode }))
|
||||
</script>
|
||||
|
||||
<script lang='ts'>
|
||||
|
|
@ -11,7 +14,6 @@
|
|||
import type { MediaInfo } from '$lib/components/ui/player/util'
|
||||
import type { resolveFilesPoorly, ResolvedFile } from './resolver'
|
||||
|
||||
import { searchStore } from '$lib'
|
||||
import { fillerEpisodes } from '$lib/components/EpisodesList.svelte'
|
||||
import { cover, episodes, title, type Media } from '$lib/modules/anilist'
|
||||
import { settings } from '$lib/modules/settings'
|
||||
|
|
|
|||
Loading…
Reference in a new issue