| Index: pkg/web_components/lib/dart_support.js
|
| diff --git a/pkg/web_components/lib/dart_support.js b/pkg/web_components/lib/dart_support.js
|
| index efa130106068a64608998a29152adb148a7f5d8e..7ce882cef9a107d18d5fc8ec23de4d7df69673d8 100644
|
| --- a/pkg/web_components/lib/dart_support.js
|
| +++ b/pkg/web_components/lib/dart_support.js
|
| @@ -7,7 +7,9 @@
|
| var ShadowDOMPolyfill = window.ShadowDOMPolyfill;
|
| if (!ShadowDOMPolyfill) return;
|
|
|
| - if (navigator.userAgent.indexOf('(Dart)') !== -1) {
|
| + // TODO(sigmund): remove the userAgent check once 1.6 rolls as stable.
|
| + // See: dartbug.com/18463
|
| + if (navigator.dartEnabled || (navigator.userAgent.indexOf('(Dart)') !== -1)) {
|
| console.error("ShadowDOMPolyfill polyfill was loaded in Dartium. This " +
|
| "will not work. This indicates that Dartium's Chrome version is " +
|
| "not compatible with this version of web_components.");
|
|
|