Browse files

Remove CSS when JS in rendered in Live, close #368 #372

  • Loading branch information...
1 parent fd22623 commit e7a4d0b48628313e712118269cc37f1bd665ffbb @phuu phuu committed with remy Oct 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 public/js/render/render.js
View
2 public/js/render/render.js
@@ -139,7 +139,7 @@ function getPreparedCode(nojs) {
if (!hasHTML && !hasJS && hasCSS) {
source = "<pre>\n" + css + "</pre>";
- } else if (css) {
+ } else if (css && hasHTML) {
parts = [];
close = '';
if (source.indexOf('</head>') !== -1) {

0 comments on commit e7a4d0b

Please sign in to comment.