Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dillonzq/LoveIt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-05-15 11:32:36 +0300
committerDillon <dillonzq@outlook.com>2020-05-15 11:32:36 +0300
commitc5a0ec61c9b5cc5a76dda784e1a39bbbc55ff8f7 (patch)
treef4ba9d7da0e34102405ba7f3282a4efea353e87f /src
parent3fba585d79321ee0466ab25f7962293dde8efe4d (diff)
feat(compatibility): add config for compatibility (Polyfill.io and object-fit-images)
Diffstat (limited to 'src')
-rw-r--r--src/js/theme.js2
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() {