Fix autoPlayback ready

This commit is contained in:
Harvey committed 2022-04-25 16:14:12 +08:00
1 parent 65fcc3d128
commit e0ddedaff5
3 files changed
+3 -3

No files matched your search

@@ -15,7 +15,7 @@ export default function autoPlayback(art) {
storage.set('times', times);
});
art.once('video:loadedmetadata', () => {
art.on('ready', () => {
const times = storage.get('times') || {};
const currentTime = times[art.option.url];
if (currentTime) {