mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
less element (sheet) might not be located in head
This commit is contained in:
@@ -211,7 +211,7 @@ function createCSS(styles, sheet, lastModified) {
|
||||
if( sheet.media ){ css.media = sheet.media; }
|
||||
css.id = id;
|
||||
var nextEl = sheet && sheet.nextSibling || null;
|
||||
document.getElementsByTagName('head')[0].insertBefore(css, nextEl);
|
||||
nextEl.parentNode.insertBefore(css, nextEl);
|
||||
}
|
||||
|
||||
if (css.styleSheet) { // IE
|
||||
|
||||
Reference in New Issue
Block a user