aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2021-04-19 21:13:06 +1000
committerGitHub <noreply@github.com>2021-04-19 21:13:06 +1000
commit6ff6ff1673204363f787493784ec68b6c1a953e5 (patch)
tree9bcf22d7f1709e00251ee5863c9d88b21fc184a8
parente1ff86820c3b07da35a5192a007b13603fb44f38 (diff)
downloadplyr-6ff6ff1673204363f787493784ec68b6c1a953e5.tar.lz
plyr-6ff6ff1673204363f787493784ec68b6c1a953e5.tar.xz
plyr-6ff6ff1673204363f787493784ec68b6c1a953e5.zip
fix: syntax fix (#2176)
-rw-r--r--src/js/utils/style.js2
1 files changed, 1 insertions, 1 deletions
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) {