mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
bugifx
This commit is contained in:
1 parent
5554849a9f
commit
d3d4114336
5 files changed
+7
-7
No files matched your search
@@ -12,7 +12,7 @@ export default function aspectRatioMix(art, player) {
|
||||
return $player.dataset.aspectRatio || '';
|
||||
},
|
||||
set(ratio) {
|
||||
if (ratio === false) ratio = 'default';
|
||||
if (!ratio) ratio = 'default';
|
||||
|
||||
const ratioList = ['default', '4:3', '16:9'];
|
||||
errorHandle(ratioList.includes(ratio), `'aspectRatio' only accept ${ratioList.toString()} as parameters`);
|
||||
|
||||
Reference in new issue
Block a user