Index: client/dart.js |
diff --git a/client/dart.js b/client/dart.js |
index f13841a3dc85bbf8a8b3c46dfc1b4a9fea0ba9cb..43a6497e336e71ca408fa64db53a3fec48e218b8 100644 |
--- a/client/dart.js |
+++ b/client/dart.js |
@@ -10,11 +10,7 @@ var warning = [ |
console.error(warning); |
// Bootstrap support for Dart scripts on the page as this script. |
-if (navigator.webkitStartDart) { |
- if (!navigator.webkitStartDart()) { |
- document.body.innerHTML = 'This build has expired. Please download a new Dartium at http://www.dartlang.org/dartium/index.html'; |
- } |
-} else { |
+if (navigator.userAgent.indexOf('(Dart)') === -1) { |
ricow1
2013/10/30 06:35:25
indexOf should always return a number, so strictly
|
// TODO: |
// - Support in-browser compilation. |
// - Handle inline Dart scripts. |
@@ -211,7 +207,7 @@ function ReceivePortSync() { |
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); |