]> git.wh0rd.org - tt-rss.git/blobdiff - functions.js
msie-related code cleanup
[tt-rss.git] / functions.js
index 79068c0fd8340f33317d214a2c71ae8c81e41f97..a5c689b1026d9f059bd765460f25f5a708e68e47 100644 (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";
                                }