fix(benchmarks): allow ng2_switch benchmark to be used with AoT. (#12124)

This commit is contained in:
Tobias Bosch 2016-10-06 10:22:08 -07:00 committed by GitHub
parent f1cfddf6d6
commit de1f44f51f
1 changed files with 6 additions and 2 deletions

View File

@ -19,9 +19,13 @@
</p>
<div>
<tree id="root"></tree>
<tree id="root">Loading...</tree>
</div>
<script src="../../bootstrap_ng2.js"></script>
<script>
var mainUrl = window.location.search.split(/[?&]main=([^&]+)/)[1]
|| '../../bootstrap_ng2.js';
document.write('<script src="' + mainUrl + '">\u003c/script>');
</script>
</body>
</html>