add log plugin

This commit is contained in:
zhw2590582 committed 2021-07-25 00:07:51 +08:00
1 parent 8ad2520738
commit 888c929549
7 files changed
+129 -7

No files matched your search

+5
View File
@@ -4,6 +4,7 @@ import localVideo from './localVideo';
import localSubtitle from './localSubtitle';
import miniProgressBar from './miniProgressBar';
import networkMonitor from './networkMonitor';
import log from './log';
export default class Plugins {
constructor(art) {
@@ -32,6 +33,10 @@ export default class Plugins {
this.add(networkMonitor);
}
if (option.log) {
this.add(log);
}
art.option.plugins.forEach((plugin) => {
this.add(plugin);
});