aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js')
-rw-r--r--core/js/core.json3
-rw-r--r--core/js/js.js5
2 files changed, 7 insertions, 1 deletions
diff --git a/core/js/core.json b/core/js/core.json
index 9da91a7f639..41b927147b6 100644
--- a/core/js/core.json
+++ b/core/js/core.json
@@ -15,7 +15,8 @@
"autosize/dist/autosize.min.js",
"DOMPurify/dist/purify.min.js",
"snapjs/dist/latest/snap.js",
- "select2/select2.js"
+ "select2/select2.js",
+ "css-vars-ponyfill/dist/css-vars-ponyfill.min.js"
],
"libraries": [
"jquery-showpassword.js",
diff --git a/core/js/js.js b/core/js/js.js
index 47fe4c4be58..a7dba7981f7 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -1342,6 +1342,11 @@ function initCore() {
$('html').addClass('edge');
}
+ // css variables fallback for IE
+ if (msie > 0 || trident > 0) {
+ cssVars();
+ }
+
$(window).on('unload.main', function() {
OC._unloadCalled = true;
});