mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-21 16:29:40 +02:00
Merge pull request #155 from tylerlong/master
IE, local html, cssRules access is denied
This commit is contained in:
@@ -66,12 +66,14 @@ module.exports.cloneCssStyles = function(svg, classes){
|
||||
catch(err) {
|
||||
if(typeof console !== 'undefined'){
|
||||
if(console.warn !== 'undefined'){
|
||||
if(rule !== 'undefined'){
|
||||
console.warn('Invalid CSS selector "' + rule.selectorText + '"', err);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var defaultStyles = "";
|
||||
var embeddedStyles = "";
|
||||
|
Reference in New Issue
Block a user