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

Unified Diff: client/dart.js

Issue 10383215: Add expiration check into dart.js script. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dart.js
diff --git a/client/dart.js b/client/dart.js
index d0899d1fa6ced6f5140c18f9b6f0e965e458f724..ba0bfa9b9b32a9c69fb53408c11eac853d740027 100644
--- a/client/dart.js
+++ b/client/dart.js
@@ -4,7 +4,9 @@
// Bootstrap support for Dart scripts on the page as this script.
if (navigator.webkitStartDart) {
- navigator.webkitStartDart();
+ if (navigator.webkitStartDart()) {
vsm 2012/05/16 19:14:01 Minor nit: I'd suggest changing failure from true
Anton Muhin 2012/05/17 14:20:28 We need to think out landing process as if I chang
+ document.body.innerHTML = 'This build has expired. Please download a new Dartium at http://www.dartlang.org/dartium/index.html';
+ }
} else {
// TODO:
// - Support in-browser compilation.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698