mirror of
https://github.com/less/less.js.git
synced 2026-01-24 14:48:00 -05:00
Shift the type setting in order to work with Webkit, and fix typo for IE.
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];
|
||||
style.type = 'text/css';
|
||||
try {
|
||||
style.innerHTML = css;
|
||||
} catch (_) {
|
||||
style.styleSheets.cssText = css;
|
||||
style.styleSheet.cssText = css;
|
||||
}
|
||||
style.type = 'text/css';
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user