Chromium Code Reviews| Index: lib/src/codegen/html_codegen.dart |
| diff --git a/lib/src/codegen/html_codegen.dart b/lib/src/codegen/html_codegen.dart |
| index 6c56220d83c3afe00f501aaf59d034699d2ede6f..739045ec871b6ddbb8fa2fb67a514374344a15ed 100644 |
| --- a/lib/src/codegen/html_codegen.dart |
| +++ b/lib/src/codegen/html_codegen.dart |
| @@ -28,7 +28,7 @@ String generateEntryHtml(HtmlSourceNode root, AbstractCompiler compiler) { |
| var scripts = document.querySelectorAll('script[type="application/dart"]'); |
| if (scripts.isEmpty) { |
| _log.warning('No <script type="application/dart"> found in ${root.uri}'); |
| - return '${document.outerHtml}\n'; |
| + return root.contents; |
|
Jennifer Messerly
2016/01/13 18:05:02
This could use a comment.
|
| } |
| scripts.skip(1).forEach((s) { |
| // TODO(sigmund): allow more than one Dart script tags? |