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:
parent
53c077afc9
commit
4681b18081
|
@ -1350,11 +1350,6 @@ function initCore() {
|
||||||
$('html').addClass('edge');
|
$('html').addClass('edge');
|
||||||
}
|
}
|
||||||
|
|
||||||
// css variables fallback for IE
|
|
||||||
if (msie > 0 || trident > 0) {
|
|
||||||
cssVars();
|
|
||||||
}
|
|
||||||
|
|
||||||
$(window).on('unload.main', function() {
|
$(window).on('unload.main', function() {
|
||||||
OC._unloadCalled = true;
|
OC._unloadCalled = true;
|
||||||
});
|
});
|
||||||
|
|
|
@ -48,13 +48,16 @@ import 'snap.js/dist/snap'
|
||||||
import 'strengthify'
|
import 'strengthify'
|
||||||
import 'strengthify/strengthify.css'
|
import 'strengthify/strengthify.css'
|
||||||
|
|
||||||
|
cssVars({
|
||||||
|
watch: true
|
||||||
|
})
|
||||||
|
|
||||||
window['_'] = _
|
window['_'] = _
|
||||||
window['$'] = $
|
window['$'] = $
|
||||||
window['autosize'] = autosize
|
window['autosize'] = autosize
|
||||||
window['Backbone'] = Backbone
|
window['Backbone'] = Backbone
|
||||||
window['Clipboard'] = ClipboardJS
|
window['Clipboard'] = ClipboardJS
|
||||||
window['ClipboardJS'] = ClipboardJS
|
window['ClipboardJS'] = ClipboardJS
|
||||||
window['cssVars'] = cssVars
|
|
||||||
window['dav'] = dav
|
window['dav'] = dav
|
||||||
window['DOMPurify'] = DOMPurify
|
window['DOMPurify'] = DOMPurify
|
||||||
window['Handlebars'] = Handlebars
|
window['Handlebars'] = Handlebars
|
||||||
|
|
Loading…
Reference in New Issue