Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1339)

Unified Diff: pkg/browser/lib/interop.js

Issue 52023002: Use userAgent instead of webkitStartDart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698