We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dad4fde commit 6758ca7Copy full SHA for 6758ca7
assets/js/theme/global/object-fit-polyfill.js
@@ -1,5 +1,8 @@
1
import objectFitImages from 'object-fit-images';
2
3
export default function () {
4
- objectFitImages();
+ /* Polyfill object-fit for IE11 only */
5
+ if (navigator.userAgent.match(/Trident.*rv\:11\./)) {
6
+ objectFitImages();
7
+ }
8
}
0 commit comments