mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 11:21:20 -08:00
优化ready事件
This commit is contained in:
1 parent
7b3913e318
commit
4cbefa172d
11 files changed
+21
-37
No files matched your search
@@ -38,7 +38,7 @@ export default function localSubtitle(art) {
|
||||
});
|
||||
}
|
||||
|
||||
art.on('ready', () => {
|
||||
art.once('ready', () => {
|
||||
setting.add({
|
||||
title: 'Local Subtitle',
|
||||
name: 'localSubtitle',
|
||||
|
||||
@@ -51,7 +51,7 @@ export default function localVideo(art) {
|
||||
});
|
||||
}
|
||||
|
||||
art.on('ready', () => {
|
||||
art.once('ready', () => {
|
||||
setting.add({
|
||||
title: 'Local Video',
|
||||
name: 'localVideo',
|
||||
|
||||
Reference in new issue
Block a user