Skip to content

Commit

Permalink
fix: minor syntax tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
sampotts committed Apr 19, 2021
1 parent 6ff6ff1 commit b93dcc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/utils/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b93dcc4

Please sign in to comment.