diff options
author | Andrew Dolgov <[email protected]> | 2008-05-20 11:39:48 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-05-20 11:39:48 +0100 |
commit | f74cfded6f2159e593e0c02968ca1db7a93841a0 (patch) | |
tree | 8072e444e9450a73b8db9f8825b75cea311afe7b /functions.js | |
parent | 569720c589e979cdbc0102f6d45dcecf1af1ea59 (diff) |
msie-related code cleanup
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/functions.js b/functions.js index 79068c0fd..a5c689b10 100644 --- a/functions.js +++ b/functions.js @@ -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"; } |