This commit is contained in:
Harvey authored and Harvey Zack committed 2022-04-22 16:25:51 +08:00
1 parent 4a9d98ac4d
commit f08c4767c2
7 files changed
+92 -19

No files matched your search

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