fix: minor syntax tweak

This commit is contained in:
Sam Potts 2021-04-19 21:16:30 +10:00
parent 6ff6ff1673
commit b93dcc43ad

View File

@ -87,7 +87,7 @@ export function setAspectRatio(input) {
}
const [x, y] = ratio;
const useNative = window.CSS ? 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;
if (useNative) {