添加弹幕验证

This commit is contained in:
Harvey committed 2020-04-26 09:36:12 +08:00
1 parent 7f3b116851
commit ae7d87e08b
6 files changed
+52 -25

No files matched your search

+6 -5
View File
@@ -25,6 +25,7 @@ import Plugins from './plugins';
import Mobile from './mobile';
let id = 0;
const instances = [];
class Artplayer extends Emitter {
constructor(option) {
super();
@@ -56,7 +57,11 @@ class Artplayer extends Emitter {
id += 1;
this.id = id;
Artplayer.instances.push(this);
instances.push(this);
}
static get instances() {
return instances;
}
static get version() {
@@ -158,10 +163,6 @@ class Artplayer extends Emitter {
}
}
utils.def(Artplayer, 'instances', {
value: [],
});
// eslint-disable-next-line no-console
console.log(
'%c ArtPlayer %c __VERSION__ %c https://artplayer.org',