add autoPlayback

This commit is contained in:
Harvey Zack committed 2022-04-25 15:38:26 +08:00
1 parent 07edda2e22
commit 59d19b67c7
4 files changed
+53 -1

No files matched your search

+5
View File
@@ -1,6 +1,7 @@
import { errorHandle, isMobile, has, def } from '../utils';
import miniProgressBar from './miniProgressBar';
import lock from './lock';
import autoPlayback from './autoPlayback';
export default class Plugins {
constructor(art) {
@@ -17,6 +18,10 @@ export default class Plugins {
this.add(lock);
}
if (option.autoPlayback) {
this.add(autoPlayback);
}
for (let index = 0; index < option.plugins.length; index++) {
this.add(option.plugins[index]);
}