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

Unified Diff: client/dart.js

Issue 10843055: Switch to new expiration protocol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 c070ef1a68a6a2b33e92e7a8c3bdce55008e9104..781e70ee0cfda4d421f441b69e95cfd9a9c2cf48 100644
--- a/client/dart.js
+++ b/client/dart.js
@@ -4,8 +4,9 @@
// 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';
+ var expirationDate = navigator.webkitStartDart();
+ if (expirationDate) {
+ document.body.innerHTML = 'This build has expired on ' + expirationDate + '. Please download a new Dartium at http://www.dartlang.org/dartium/index.html';
}
} else {
// TODO:
« 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