mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 10:23:21 -08:00
refactor(core): CORE-19 type capture and preserve progress lifetimes
This commit is contained in:
1 parent
98a1800032
commit
ccf77c4ed2
49 files changed
+31570
-681
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import type { ControlFactory, ControlOption } from './types'
|
||||
import { appendElement } from '../component/dom'
|
||||
import { silencePromise } from '../utils'
|
||||
import { controlEvents } from './resources'
|
||||
|
||||
export default function screenshot(option: ControlOption): ControlFactory {
|
||||
@@ -12,7 +13,7 @@ export default function screenshot(option: ControlOption): ControlFactory {
|
||||
|
||||
appendElement($control, icons.screenshot)
|
||||
proxy($control, 'click', () => {
|
||||
art.screenshot()
|
||||
silencePromise(art.screenshot())
|
||||
})
|
||||
},
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user