salvattore icon indicating copy to clipboard operation
salvattore copied to clipboard

Error with imported fonts

Open pierot opened this issue 10 years ago • 0 comments

When the lib parses the css, it sometimes doesn't find the rule.cssRules on line 194: https://github.com/rnmp/salvattore/blob/master/src/salvattore.js#L194

This can be resolved by adding a check for the property in the if-conditional: && rule.cssRules resulting in

if (rule.media && rule.cssRules && self.media_rule_has_columns_selector(rule.cssRules)) {
  mediaQueries.push(global.matchMedia(rule.media.mediaText));
}

pierot avatar Oct 17 '14 13:10 pierot