Skip to content

Commit

Permalink
Merge pull request #132 from davidtme/master
Browse files Browse the repository at this point in the history
Fixed rules.length null error
  • Loading branch information
madskristensen committed Oct 17, 2013
2 parents f64bdb7 + fa2a889 commit 7668891
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@
tmp.push({ "href": getSheetHref(sheets[i]) });
var sheet = sheets[i];
var rules = sheet.cssRules;

// Some Chrome Extension add style sheets to the page and the rules can't be access or return null.
if (rules === null) {
continue;
}

var nameEncounters = {};

for (var j = 0; j < rules.length; ++j) {
Expand Down

0 comments on commit 7668891

Please sign in to comment.