From 6ff6ff1673204363f787493784ec68b6c1a953e5 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Mon, 19 Apr 2021 21:13:06 +1000 Subject: [PATCH] fix: syntax fix (#2176) --- src/js/utils/style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/utils/style.js b/src/js/utils/style.js index a9659cf4..7a950f3b 100644 --- a/src/js/utils/style.js +++ b/src/js/utils/style.js @@ -87,7 +87,7 @@ export function setAspectRatio(input) { } 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; if (useNative) {