优化版本输出

This commit is contained in:
zhw2590582 committed 2019-11-21 20:26:43 +08:00
1 parent 17b7386ad6
commit c933bd68e4
6 files changed
+72 -48

No files matched your search

+8 -7
View File
@@ -57,13 +57,6 @@ class Artplayer extends Emitter {
id += 1;
this.id = id;
Artplayer.instances.push(this);
// eslint-disable-next-line no-console
console.log(
'%c ArtPlayer %c __VERSION__ %c https://artplayer.org',
'color: #fff; background: #5f5f5f',
'color: #fff; background: #4bc729',
'',
);
}
static get version() {
@@ -168,4 +161,12 @@ Object.defineProperty(Artplayer, 'instances', {
value: [],
});
// eslint-disable-next-line no-console
console.log(
'%c ArtPlayer %c __VERSION__ %c https://artplayer.org',
'color: #fff; background: #5f5f5f',
'color: #fff; background: #4bc729',
'',
);
export default Artplayer;