Add a warning to the old dart.js

Review URL: https://codereview.chromium.org//11886028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17070 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
vsm@google.com 2013-01-15 14:27:10 +00:00
parent 9d27b80d53
commit 1156ea3216

View file

@ -2,6 +2,13 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
var warning = [
'WARNING: This page is using a deprecated dart.js file. ',
'Please update this page as described here: ',
'http://news.dartlang.org/2013/01/big-breaking-change-dartjs-bootstrap-file-moving-to-pub.html'
].join('');
console.error(warning);
// Bootstrap support for Dart scripts on the page as this script.
if (navigator.webkitStartDart) {
if (!navigator.webkitStartDart()) {