fix: syntax fix (#2176)
This commit is contained in:
parent
e1ff86820c
commit
6ff6ff1673
@ -87,7 +87,7 @@ export function setAspectRatio(input) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const [x, y] = ratio;
|
const [x, y] = ratio;
|
||||||
const useNative = window.CSS?.supports(`aspect-ratio: ${x} / ${y}`) ?? false;
|
const useNative = window.CSS ? window.CSS.supports(`aspect-ratio: ${x} / ${y}`) : false;
|
||||||
const padding = (100 / x) * y;
|
const padding = (100 / x) * y;
|
||||||
|
|
||||||
if (useNative) {
|
if (useNative) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user