salvattore
salvattore copied to clipboard
Error with imported fonts
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));
}