mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-05 02:29:44 +00:00
fix: entry, hold to ff
This commit is contained in:
parent
494b06b3d0
commit
e10fef4b3d
2 changed files with 5 additions and 3 deletions
|
|
@ -599,11 +599,12 @@
|
|||
|
||||
<svelte:document bind:fullscreenElement bind:visibilityState use:holdToFF={'key'} />
|
||||
|
||||
<div class='w-full h-full relative content-center bg-black overflow-clip text-left' class:fitWidth bind:this={wrapper} use:holdToFF={'pointer'}>
|
||||
<div class='w-full h-full relative content-center bg-black overflow-clip text-left' class:fitWidth bind:this={wrapper}>
|
||||
<video class='w-full h-full grow' preload='auto' class:cursor-none={immersed} class:cursor-pointer={isMiniplayer} class:object-cover={fitWidth} class:opacity-0={deband} class:absolute={deband} class:top-0={deband}
|
||||
use:createDeband={$settings.playerDeband}
|
||||
use:createSubtitles
|
||||
use:autoPiP={pip}
|
||||
use:holdToFF={'pointer'}
|
||||
crossorigin='anonymous'
|
||||
src={mediaInfo.file.url}
|
||||
bind:videoHeight
|
||||
|
|
|
|||
|
|
@ -56,7 +56,8 @@ class AnilistClient {
|
|||
|
||||
client = new Client({
|
||||
url: 'https://graphql.anilist.co',
|
||||
fetch: dev ? fetch : (req: RequestInfo | URL, opts?: RequestInit) => this.handleRequest(req, opts),
|
||||
// fetch: dev ? fetch : (req: RequestInfo | URL, opts?: RequestInit) => this.handleRequest(req, opts),
|
||||
fetch: (req: RequestInfo | URL, opts?: RequestInit) => this.handleRequest(req, opts),
|
||||
exchanges: [
|
||||
refocusExchange(),
|
||||
offlineExchange({
|
||||
|
|
@ -168,7 +169,7 @@ class AnilistClient {
|
|||
score: 0,
|
||||
id: -1,
|
||||
...media.mediaListEntry,
|
||||
customLists: (args.customLists as string[]).map(name => ({ enabled: true, name })).concat(...(media.mediaListEntry?.customLists as (Array<{ enabled: boolean, name: string }> | undefined) ?? [])),
|
||||
customLists: (args.lists as string[]).map(name => ({ enabled: true, name })).concat(...(media.mediaListEntry?.customLists as (Array<{ enabled: boolean, name: string }> | undefined) ?? [])),
|
||||
...args,
|
||||
media,
|
||||
__typename: 'MediaList'
|
||||
|
|
|
|||
Loading…
Reference in a new issue