mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Add urlInclude
This commit is contained in:
parent
61219fb92c
commit
b81cfc0ba4
@ -1,5 +1,6 @@
|
|||||||
import { defineComponentMetadata } from '@/components/define'
|
import { defineComponentMetadata } from '@/components/define'
|
||||||
import { preventEvent } from '@/core/utils'
|
import { preventEvent } from '@/core/utils'
|
||||||
|
import { allVideoUrls } from '@/core/utils/urls'
|
||||||
|
|
||||||
let cancel: () => void
|
let cancel: () => void
|
||||||
export const disableScrollVolume = () => {
|
export const disableScrollVolume = () => {
|
||||||
@ -27,4 +28,5 @@ export const component = defineComponentMetadata({
|
|||||||
unload: () => {
|
unload: () => {
|
||||||
cancel?.()
|
cancel?.()
|
||||||
},
|
},
|
||||||
|
urlInclude: allVideoUrls,
|
||||||
})
|
})
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import {
|
|||||||
import { disableScrollVolume } from '../disable-scroll-volume'
|
import { disableScrollVolume } from '../disable-scroll-volume'
|
||||||
import { playerAgent } from '@/components/video/player-agent'
|
import { playerAgent } from '@/components/video/player-agent'
|
||||||
import { getComponentSettings } from '@/core/settings'
|
import { getComponentSettings } from '@/core/settings'
|
||||||
|
import { allVideoUrls } from '@/core/utils/urls'
|
||||||
|
|
||||||
let cancel: () => void
|
let cancel: () => void
|
||||||
|
|
||||||
@ -55,4 +56,5 @@ export const component = defineComponentMetadata({
|
|||||||
cancel = invertScrollVolume()
|
cancel = invertScrollVolume()
|
||||||
},
|
},
|
||||||
unload: () => cancel?.(),
|
unload: () => cancel?.(),
|
||||||
|
urlInclude: allVideoUrls,
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user