mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 10:46:49 +00:00
use Ajax.getTransport to create our xmlhttp objects
This commit is contained in:
19
tt-rss.js
19
tt-rss.js
@@ -11,24 +11,7 @@ var firsttime_update = true;
|
||||
var last_refetch = 0;
|
||||
var cookie_lifetime = 0;
|
||||
|
||||
/*@cc_on @*/
|
||||
/*@if (@_jscript_version >= 5)
|
||||
// JScript gives us Conditional compilation, we can cope with old IE versions.
|
||||
// and security blocked creation of the objects.
|
||||
try {
|
||||
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
|
||||
} catch (e) {
|
||||
try {
|
||||
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
||||
} catch (E) {
|
||||
xmlhttp = false;
|
||||
}
|
||||
}
|
||||
@end @*/
|
||||
|
||||
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
|
||||
xmlhttp = new XMLHttpRequest();
|
||||
}
|
||||
var xmlhttp = Ajax.getTransport();
|
||||
|
||||
function toggleTags() {
|
||||
display_tags = !display_tags;
|
||||
|
||||
Reference in New Issue
Block a user