diff options
author | Franck Verrot <franck@verrot.fr> | 2013-01-04 08:32:24 +0100 |
---|---|---|
committer | Franck Verrot <franck@verrot.fr> | 2013-01-04 09:41:39 +0100 |
commit | 8ea480b516872eac1ceb07d89bab5caa89b8134d (patch) | |
tree | e764f63e83774490440e41283c14b9834bbe27c2 /railties/lib/rails/templates | |
parent | a9511364e0bdf99ae32eddb153f6b1e8f7d73791 (diff) | |
download | rails-8ea480b516872eac1ceb07d89bab5caa89b8134d.tar.gz rails-8ea480b516872eac1ceb07d89bab5caa89b8134d.tar.bz2 rails-8ea480b516872eac1ceb07d89bab5caa89b8134d.zip |
Remove the fallback onto `ActiveXObject("Microsoft.XMLHTTP")`.
Diffstat (limited to 'railties/lib/rails/templates')
-rw-r--r-- | railties/lib/rails/templates/rails/welcome/index.html.erb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/railties/lib/rails/templates/rails/welcome/index.html.erb b/railties/lib/rails/templates/rails/welcome/index.html.erb index b102561848..4dee366a76 100644 --- a/railties/lib/rails/templates/rails/welcome/index.html.erb +++ b/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; |