mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:27:43 +00:00
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:
parent
9d27b80d53
commit
1156ea3216
|
@ -2,6 +2,13 @@
|
||||||
// for details. All rights reserved. Use of this source code is governed by a
|
// 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.
|
// 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.
|
// Bootstrap support for Dart scripts on the page as this script.
|
||||||
if (navigator.webkitStartDart) {
|
if (navigator.webkitStartDart) {
|
||||||
if (!navigator.webkitStartDart()) {
|
if (!navigator.webkitStartDart()) {
|
||||||
|
|
Loading…
Reference in a new issue