From: Andrew Dolgov Date: Tue, 20 Dec 2005 15:49:52 +0000 (+0100) Subject: fix feedlist init for IE X-Git-Tag: schema_freeze_for_1.1.1~12 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bbf4d0b29d61648dd817b046750b6f1c66a5f7af;p=tt-rss.git fix feedlist init for IE --- diff --git a/feedlist.js b/feedlist.js index c58dff61..2e1d5eb5 100644 --- a/feedlist.js +++ b/feedlist.js @@ -197,6 +197,6 @@ function init() { document.onkeydown = hotkey_handler; parent.setTimeout("timeout()", 1000); } catch (e) { - exception_error("feedlist/init()", e); + exception_error("feedlist/init", e); } } diff --git a/functions.js b/functions.js index 2764a5bb..e0ddfff1 100644 --- a/functions.js +++ b/functions.js @@ -496,6 +496,8 @@ function hideOrShowFeeds(doc, hide) { var css_rules = doc.styleSheets[0].cssRules; + if (!css_rules || !css_rules.length) return; + for (i = 0; i < css_rules.length; i++) { var rule = css_rules[i];