From b1acb3426096724a942600b5baf12a316659129a Mon Sep 17 00:00:00 2001 From: cloudhead Date: Sun, 27 Jun 2010 16:11:44 -0400 Subject: [PATCH] fix media type not being preserved when generated css --- lib/less/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/less/browser.js b/lib/less/browser.js index a91a8cb..544ec5a 100644 --- a/lib/less/browser.js +++ b/lib/less/browser.js @@ -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); }