1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 15:25:56 +00:00

msie-related code cleanup

This commit is contained in:
Andrew Dolgov
2008-05-20 11:39:48 +01:00
parent 569720c589
commit f74cfded6f
6 changed files with 19 additions and 80 deletions

View File

@@ -11,10 +11,6 @@ Array.prototype.remove = function(s) {
}
}
function is_msie() {
return navigator.userAgent.match("MSIE");
}
function is_opera() {
return window.opera;
}
@@ -28,7 +24,9 @@ function exception_error(location, e, silent) {
msg = "Exception: " + e.name + ", " + e.message +
"\nFunction: " + location + "()" +
"\nLocation: " + base_fname + ":" + e.lineNumber;
} else if (e.description) {
msg = "Exception: " + e.description + "\nFunction: " + location + "()";
} else {
msg = "Exception: " + e + "\nFunction: " + location + "()";
}
@@ -534,7 +532,7 @@ function parse_counters(reply, scheduled_call) {
}
}
if (has_img && feed_img && !is_msie()) {
if (has_img && feed_img) {
if (!feed_img.src.match(id + ".ico")) {
feed_img.src = getInitParam("icons_location") + "/" + id + ".ico";
}