采用简单的插件命名

This commit is contained in:
Harvey Zack committed 2018-12-02 11:05:48 +08:00
1 parent 5bfe0f7cfb
commit 81a577d4a6
5 files changed
+19 -15

No files matched your search

+4 -4
View File
@@ -1,13 +1,13 @@
import artplayerPluginSubtitle from './artplayer-plugin-subtitle';
import artplayerPluginLocalPreview from './artplayer-plugin-localPreview';
import subtitle from './subtitle';
import localPreview from './localPreview';
export default class Plugins {
constructor(art) {
this.art = art;
this.id = 0;
this.add(artplayerPluginSubtitle);
this.add(artplayerPluginLocalPreview);
this.add(subtitle);
this.add(localPreview);
art.option.plugins.forEach(plugin => {
this.add(plugin);
});