Add compatibility fix for CSS skins with <style> element
This commit is contained in:
parent
c6d86368c5
commit
0b326e71e6
1 changed files with 2 additions and 1 deletions
|
|
@ -489,7 +489,8 @@ Site.prototype.main_css_action = function() {
|
|||
res.push();
|
||||
this.renderSkin('$Site#stylesheet');
|
||||
this.renderSkin('Site#stylesheet');
|
||||
var css = res.pop();
|
||||
var css = res.pop()
|
||||
.replace(/<(\/?style|!).*/g, ''); // TODO: Actually, a compatibility fix (earlier CSS skins contained the <style> element)
|
||||
|
||||
try {
|
||||
lessParser.parse(css, function(error, less) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue