mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 05:11:20 -08:00
优化版本输出
This commit is contained in:
1 parent
17b7386ad6
commit
c933bd68e4
6 files changed
+72
-48
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user