mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 23:39:50 +02:00
Fix styleSheets index issue
This commit is contained in:
@@ -100,7 +100,7 @@ describe('when cloning CSS ', function () {
|
|||||||
svg.setAttribute('id', 'mermaid-01')
|
svg.setAttribute('id', 'mermaid-01')
|
||||||
|
|
||||||
// Firefox throws a SecurityError when trying to access cssRules
|
// Firefox throws a SecurityError when trying to access cssRules
|
||||||
document.styleSheets[document.styleSheets.length] = {
|
document.styleSheets[document.styleSheets.length - 1] = {
|
||||||
get cssRules () { throw new Error('SecurityError') }
|
get cssRules () { throw new Error('SecurityError') }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user