mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 12:41:20 -08:00
移除大部分异步操作
This commit is contained in:
1 parent
3fb41eedf7
commit
450e4ac879
8 files changed
+82
-90
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { clamp, sleep } from '../utils';
|
||||
import { clamp } from '../utils';
|
||||
|
||||
export default function attrInit(art, player) {
|
||||
const {
|
||||
@@ -25,7 +25,5 @@ export default function attrInit(art, player) {
|
||||
$video.autoplay = option.autoplay;
|
||||
}
|
||||
|
||||
sleep().then(() => {
|
||||
player.attachUrl(option.url);
|
||||
});
|
||||
player.attachUrl(option.url);
|
||||
}
|
||||
Reference in new issue
Block a user