mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 10:23:21 -08:00
Refactor version display in context menu and clean up versioning format
- Updated the context menu version function to dynamically append the application version to the link and include a ref parameter in the URL. - Removed the build version log from the initialization logs in the Artplayer class. - Cleaned up the version and environment getters to return unquoted strings.
This commit is contained in:
1 parent
da94223721
commit
7e7bd8c0ad
4 files changed
+21
-9
No files matched your search
@@ -68,7 +68,6 @@ export default class Artplayer extends Emitter {
|
||||
const log = (msg) => console.log(`[ART.${this.id}] -> ${msg}`);
|
||||
log('Version@' + Artplayer.version);
|
||||
log('Env@' + Artplayer.env);
|
||||
log('Build@' + Artplayer.build);
|
||||
for (let index = 0; index < config.events.length; index++) {
|
||||
this.on('video:' + config.events[index], (event) => log('Event@' + event.type));
|
||||
}
|
||||
@@ -82,11 +81,11 @@ export default class Artplayer extends Emitter {
|
||||
}
|
||||
|
||||
static get version() {
|
||||
return '"5.2.4"';
|
||||
return '"5.2.4"'.replace(/"/g, '');
|
||||
}
|
||||
|
||||
static get env() {
|
||||
return '"development"';
|
||||
return '"development"'.replace(/"/g, '');
|
||||
}
|
||||
|
||||
static get config() {
|
||||
|
||||
Reference in new issue
Block a user