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 2f1908b42ee5b6aab180af711ee10c8c99131814..31f25600c207a0262c0729f0ae47f96fee17974f 100644 |
| --- a/lib/src/codegen/html_codegen.dart |
| +++ b/lib/src/codegen/html_codegen.dart |
| @@ -28,8 +28,8 @@ String generateEntryHtml(HtmlSourceNode root, CompilerOptions options) { |
| var document = root.document.clone(true); |
| var scripts = document.querySelectorAll('script[type="application/dart"]'); |
| if (scripts.isEmpty) { |
| - _log.severe('No <script type="application/dart"> found in ${root.uri}'); |
| - return null; |
| + _log.warning('No <script type="application/dart"> found in ${root.uri}'); |
| + return '${document.outerHtml}\n'; |
|
vsm
2015/06/11 17:27:40
Note, todo requires --resources="todo.html". That
Jennifer Messerly
2015/06/11 18:28:25
yeah, I'd be totally fine removing this warning. A
|
| } |
| scripts.skip(1).forEach((s) { |
| // TODO(sigmund): allow more than one Dart script tags? |