Index: pkg/browser/lib/dart.js |
diff --git a/pkg/browser/lib/dart.js b/pkg/browser/lib/dart.js |
index ee339de7287d5f3e479e5bd7e3f424c6f1600886..b5073788af87841c95621a9781852bf18c314340 100644 |
--- a/pkg/browser/lib/dart.js |
+++ b/pkg/browser/lib/dart.js |
@@ -27,6 +27,9 @@ if (navigator.webkitStartDart) { |
var script = document.createElement('script'); |
script.src = scripts[i].src.replace(/\.dart(?=\?|$)/, '.dart.js'); |
var parent = scripts[i].parentNode; |
+ // TODO(vsm): Find a solution for issue 8455 that works with more |
+ // than one script. |
+ document.currentScript = script; |
parent.replaceChild(script, scripts[i]); |
} |
} |