Chromium Code Reviews| Index: pkg/polymer/lib/src/build/polyfill_injector.dart |
| diff --git a/pkg/polymer/lib/src/build/polyfill_injector.dart b/pkg/polymer/lib/src/build/polyfill_injector.dart |
| index baabe102bc3a1a6161248027c8413867af320098..a467af5fc11df78c30c49f0bd37c5d6004ae0d2f 100644 |
| --- a/pkg/polymer/lib/src/build/polyfill_injector.dart |
| +++ b/pkg/polymer/lib/src/build/polyfill_injector.dart |
| @@ -69,15 +69,12 @@ class PolyfillInjector extends Transformer with PolymerTransformer { |
| // fixing our tests: even if content_shell supports Dart VM, we'll still |
| // test the compiled JS code. |
| if (options.directlyIncludeJS) { |
| - // If using CSP add the "precompiled" extension |
| - final csp = options.contentSecurityPolicy ? '.precompiled' : ''; |
|
Siggi Cherem (dart-lang)
2014/07/29 21:30:54
this is obsolete - now dart2js outputs the file wi
|
| - |
| // Replace all other Dart script tags with JavaScript versions. |
| for (var script in dartScripts) { |
| final src = script.attributes['src']; |
| if (src.endsWith('.dart')) { |
| script.attributes.remove('type'); |
| - script.attributes['src'] = '$src$csp.js'; |
| + script.attributes['src'] = '$src.js'; |
| // TODO(sigmund): we shouldn't need 'async' here. Remove this |
| // workaround for dartbug.com/19653. |
| script.attributes['async'] = ''; |