fix media type not being preserved when generated css

This commit is contained in:
cloudhead 2010-06-27 16:11:44 -04:00
parent 30fa07f39d
commit b1acb34260

View File

@ -132,7 +132,7 @@ function createCSS(styles, sheet, lastModified) {
if ((css = document.getElementById(id)) === null) {
css = document.createElement('style');
css.type = 'text/css';
css.media = 'screen';
css.media = sheet.media;
css.id = id;
document.getElementsByTagName('head')[0].appendChild(css);
}