Skip to content

Commit c9402c0

Browse files
committed
Merge pull request rails#8739 from franckverrot/remove_activexobject
Remove the fallback onto `ActiveXObject("Microsoft.XMLHTTP")`.
2 parents a951136 + 8ea480b commit c9402c0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

railties/lib/rails/templates/rails/welcome/index.html.erb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,8 @@
173173
</style>
174174
<script>
175175
function about() {
176-
var info = document.getElementById('about-content');
177-
var xhr;
178-
if (window.XMLHttpRequest)
179-
{ xhr = new XMLHttpRequest(); }
180-
else
181-
{ xhr = new ActiveXObject("Microsoft.XMLHTTP"); }
176+
var info = document.getElementById('about-content'),
177+
xhr = new XMLHttpRequest();
182178
xhr.open("GET","rails/info/properties",false);
183179
xhr.send("");
184180
info.innerHTML = xhr.responseText;

0 commit comments

Comments
 (0)