添加弹幕插件

This commit is contained in:
Harvey Zack committed 2019-04-25 11:23:41 +08:00
1 parent d626ee601e
commit 582114e79d
16 files changed
+158 -27

No files matched your search

+3 -3
View File
@@ -1,3 +1,4 @@
import { errorHandle } from '../utils';
import component from '../utils/component';
import fullscreen from './fullscreen';
import fullscreenWeb from './fullscreenWeb';
@@ -155,9 +156,8 @@ export default class Controls {
break;
}
if (parent) {
component(this.art, this, parent, option, callback, 'control');
}
errorHandle(parent, 'Controls option.position can not be empty');
return component(this.art, this, parent, option, callback, 'control');
}
show() {