mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
update
This commit is contained in:
1 parent
4a9d98ac4d
commit
f08c4767c2
7 files changed
+92
-19
No files matched your search
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user