Skip to content

Commit

Permalink
fix(globals): Fix document.head undefined in IE<9
Browse files Browse the repository at this point in the history
Fixes #530
  • Loading branch information
SimeonC authored and SimeonC committed Feb 3, 2015
1 parent e7c6eff commit da43539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ if(_browserDetect.ie > 8 || _browserDetect.ie === undefined){
if(_browserDetect.webkit) style.appendChild(document.createTextNode(""));

// Add the <style> element to the page, add as first so the styles can be overridden by custom stylesheets
document.head.appendChild(style);
document.getElementsByTagName('head')[0].appendChild(style);

return style.sheet;
})();
Expand Down

0 comments on commit da43539

Please sign in to comment.