Skip to content

breaks on pages with no CSS rules #2

@glasserc

Description

@glasserc

Line 58 reads:

  forEach.call(sheet.cssRules, findDeclarations);

On <style> tags which lead to empty stylesheets, sheet.cssRules is null, which causes an error on my iOS7 device. If a stylesheet (for whatever reason) is empty, we should probably just skip the sheet:

  if (!sheet.cssRules) return;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions