Index: pkg/browser/lib/interop.js |
diff --git a/pkg/browser/lib/interop.js b/pkg/browser/lib/interop.js |
index 1caeb5a209937eb0967c211bd0bc1e4a8a59926b..c88a0a46cadab541df82421bf312477e798410b5 100644 |
--- a/pkg/browser/lib/interop.js |
+++ b/pkg/browser/lib/interop.js |
@@ -164,7 +164,7 @@ function DartObject(o) { |
delete ReceivePortSync.map[this.id]; |
}; |
- if (navigator.webkitStartDart) { |
+ if (navigator.userAgent.indexOf('(Dart)') !== -1) { |
window.addEventListener('js-sync-message', function(event) { |
var data = JSON.parse(getPortSyncEventData(event)); |
var deserialized = deserialize(data.message); |