mirror of
https://github.com/less/less.js.git
synced 2026-02-05 20:44:58 -05:00
Merge branch 'master' of github.com:cloudhead/less.js
This commit is contained in:
@@ -103,12 +103,12 @@ function loadStyles() {
|
||||
new(less.Parser)().parse(styles[i].innerHTML || '', function (e, tree) {
|
||||
var css = tree.toCSS();
|
||||
var style = styles[i];
|
||||
try {
|
||||
style.innerHTML = css;
|
||||
} catch (_) {
|
||||
style.styleSheets.cssText = css;
|
||||
}
|
||||
style.type = 'text/css';
|
||||
if (style.styleSheet) {
|
||||
style.styleSheet.cssText = css;
|
||||
} else {
|
||||
style.innerHTML = css;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user