From bbf4d0b29d61648dd817b046750b6f1c66a5f7af Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 20 Dec 2005 16:49:52 +0100 Subject: [PATCH] fix feedlist init for IE --- feedlist.js | 2 +- functions.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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]; -- 2.39.5