| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 (function() { | 5 (function() { |
| 6 // Bootstrap support for Dart scripts on the page as this script. | 6 // Bootstrap support for Dart scripts on the page as this script. |
| 7 if (navigator.webkitStartDart) { | 7 if (navigator.webkitStartDart) { |
| 8 if (!navigator.webkitStartDart()) { | 8 if (!navigator.webkitStartDart()) { |
| 9 document.body.innerHTML = 'This build has expired. Please download a new Da
rtium at http://www.dartlang.org/dartium/index.html'; | 9 document.body.innerHTML = 'This build has expired. Please download a new Da
rtium at http://www.dartlang.org/dartium/index.html'; |
| 10 } | 10 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 var parent = scripts[i].parentNode; | 30 var parent = scripts[i].parentNode; |
| 31 // TODO(vsm): Find a solution for issue 8455 that works with more | 31 // TODO(vsm): Find a solution for issue 8455 that works with more |
| 32 // than one script. | 32 // than one script. |
| 33 document.currentScript = script; | 33 document.currentScript = script; |
| 34 parent.replaceChild(script, scripts[i]); | 34 parent.replaceChild(script, scripts[i]); |
| 35 } | 35 } |
| 36 } | 36 } |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 })(); | 39 })(); |
| OLD | NEW |