Use watch parameter for css-vars-ponyfill and remove the global variable

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-01-15 19:16:36 +01:00
parent 53c077afc9
commit 4681b18081
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
2 changed files with 4 additions and 6 deletions

View File

@ -1350,11 +1350,6 @@ function initCore() {
$('html').addClass('edge');
}
// css variables fallback for IE
if (msie > 0 || trident > 0) {
cssVars();
}
$(window).on('unload.main', function() {
OC._unloadCalled = true;
});

View File

@ -48,13 +48,16 @@ import 'snap.js/dist/snap'
import 'strengthify'
import 'strengthify/strengthify.css'
cssVars({
watch: true
})
window['_'] = _
window['$'] = $
window['autosize'] = autosize
window['Backbone'] = Backbone
window['Clipboard'] = ClipboardJS
window['ClipboardJS'] = ClipboardJS
window['cssVars'] = cssVars
window['dav'] = dav
window['DOMPurify'] = DOMPurify
window['Handlebars'] = Handlebars