Merge pull request #155 from tylerlong/master

IE, local html, cssRules access is denied
This commit is contained in:
Knut Sveidqvist 2015-04-19 10:14:59 +02:00
commit 11a30dd505

View File

@ -66,7 +66,9 @@ module.exports.cloneCssStyles = function(svg, classes){
catch(err) {
if(typeof console !== 'undefined'){
if(console.warn !== 'undefined'){
console.warn('Invalid CSS selector "' + rule.selectorText + '"', err);
if(rule !== 'undefined'){
console.warn('Invalid CSS selector "' + rule.selectorText + '"', err);
}
}
}
}