mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-18 10:41:20 -08:00
添加弹幕验证
This commit is contained in:
1 parent
7f3b116851
commit
ae7d87e08b
6 files changed
+52
-25
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user