theming: send themes directly through http requests

This commit is contained in:
jean-emmanuel 2017-06-21 20:16:48 +02:00
parent 298ac51f67
commit 63a96e1c58
4 changed files with 7 additions and 14 deletions

View file

@ -126,17 +126,6 @@ var callbacks = module.exports = {
utils.createPopup(icon('warning')+' '+data.title,data.text,true)
},
applyStyle: function(data){
var style = document.createElement('style'),
css = data.join('')
style.innerHTML = css
document.body.appendChild(style)
window.GRIDWIDTH = getComputedStyle(document.documentElement).getPropertyValue("--grid-width")
if (css.indexOf('--pixel-scale') != -1) {
window.PXSCALE_RESET()
}
},
reloadCss: function(){
var queryString = '?reload=' + new Date().getTime()
$('link[rel="stylesheet"][hot-reload]').each(function () {