Skip to content

Commit

Permalink
Fix styleSheets index issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlong committed Sep 12, 2017
1 parent 5424092 commit b1dffc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('when cloning CSS ', function () {
svg.setAttribute('id', 'mermaid-01')

// 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') }
}

Expand Down

0 comments on commit b1dffc9

Please sign in to comment.