Chromium Code Reviews| Index: pkg/polymer/lib/src/js/shadow_dartium.js |
| diff --git a/pkg/polymer/lib/src/js/shadow_dartium.js b/pkg/polymer/lib/src/js/shadow_dartium.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..163f9841a3f98fb71d5dffda164204d5d967271d |
| --- /dev/null |
| +++ b/pkg/polymer/lib/src/js/shadow_dartium.js |
| @@ -0,0 +1,6 @@ |
| +// Prevent polyfilled Shadow DOM in Dartium |
|
Siggi Cherem (dart-lang)
2014/03/06 18:18:08
I wonder if this file should be here or in pkg/web
Jennifer Messerly
2014/03/06 21:05:08
Hmmm. That's a good question. I'm not sure... it's
Siggi Cherem (dart-lang)
2014/03/06 21:26:45
Got it, make sense.
|
| +if (navigator.userAgent.indexOf('(Dart)') !== -1) { |
| + window.Platform = window.Platform || {}; |
| + Platform.flags = Platform.flags || {}; |
| + Platform.flags.shadow = 'native'; |
| +} |