theming: send themes directly through http requests
This commit is contained in:
parent
298ac51f67
commit
63a96e1c58
4 changed files with 7 additions and 14 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue