Permalink
Browse files

Remove the fallback onto `ActiveXObject("Microsoft.XMLHTTP")`.

  • Loading branch information...
1 parent a951136 commit 8ea480b516872eac1ceb07d89bab5caa89b8134d @franckverrot franckverrot committed Jan 4, 2013
Showing with 2 additions and 6 deletions.
  1. +2 −6 railties/lib/rails/templates/rails/welcome/index.html.erb
@@ -173,12 +173,8 @@
</style>
<script>
function about() {
- var info = document.getElementById('about-content');
- var xhr;
- if (window.XMLHttpRequest)
- { xhr = new XMLHttpRequest(); }
- else
- { xhr = new ActiveXObject("Microsoft.XMLHTTP"); }
+ var info = document.getElementById('about-content'),
+ xhr = new XMLHttpRequest();
xhr.open("GET","rails/info/properties",false);
xhr.send("");
info.innerHTML = xhr.responseText;

0 comments on commit 8ea480b

Please sign in to comment.