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

Unified Diff: pkg/browser/lib/dart.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/dart.js
diff --git a/pkg/browser/lib/dart.js b/pkg/browser/lib/dart.js
index b96581c5396fa05eef4adb548ef1fc4a98432669..0fd6217d2e252bfaae02836c34fbf7a17338d12c 100644
--- a/pkg/browser/lib/dart.js
+++ b/pkg/browser/lib/dart.js
@@ -4,11 +4,7 @@
(function() {
// 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 same comment as before
// TODO:
// - Support in-browser compilation.
// - Handle inline Dart scripts.

Powered by Google App Engine
This is Rietveld 408576698