feat: Refactor thumbnails implementation in Artplayer

This commit refactors the `thumbnails` implementation in Artplayer to improve code readability and maintainability. The code changes remove unnecessary variables and simplify the logic for displaying thumbnails. This refactor enhances the overall performance and user experience of the Artplayer plugin.
This commit is contained in:
Harvey Zack committed 2024-08-15 22:56:19 +08:00
1 parent 69168750f5
commit 3e3b38fe07
3 files changed
+5 -47

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ export default function thumbnails(options) {
return (art) => ({
...options,
mounted: () => {
this.art.thumbnails = art.options.thumbnails;
art.thumbnails = art.options.thumbnails;
},
});
}