mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 17:16:16 -08:00
- 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.
14 lines
443 B
JavaScript
14 lines
443 B
JavaScript
export default function version(option) {
|
|
return {
|
|
...option,
|
|
html: `<a href="https://artplayer.org" target="_blank">ArtPlayer</a>`,
|
|
mounted(el) {
|
|
const link = el.querySelector('a');
|
|
const version = this.constructor.version;
|
|
const ref = encodeURIComponent(location.href);
|
|
link.textContent += ` ${version}`;
|
|
link.href += `?ref=${ref}`;
|
|
},
|
|
};
|
|
}
|