diff options
author | Dillon <dillonzq@outlook.com> | 2020-05-15 11:32:36 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2020-05-15 11:32:36 +0300 |
commit | c5a0ec61c9b5cc5a76dda784e1a39bbbc55ff8f7 (patch) | |
tree | f4ba9d7da0e34102405ba7f3282a4efea353e87f /src | |
parent | 3fba585d79321ee0466ab25f7962293dde8efe4d (diff) |
feat(compatibility): add config for compatibility (Polyfill.io and object-fit-images)
Diffstat (limited to 'src')
-rw-r--r-- | src/js/theme.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/theme.js b/src/js/theme.js index 2c0b5439..f32e5d6c 100644 --- a/src/js/theme.js +++ b/src/js/theme.js @@ -40,7 +40,7 @@ class Theme { this.resizeEventSet = new Set(); this.switchThemeEventSet = new Set(); this.clickMaskEventSet = new Set(); - if (objectFitImages) objectFitImages(); + if (window.objectFitImages) objectFitImages(); } initSVGIcon() { |