diff --git a/feedlist.js b/feedlist.js index c58dff610..2e1d5eb5f 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 2764a5bb2..e0ddfff12 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];