mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
prettier fixes
This commit is contained in:
@@ -25,7 +25,7 @@ const getBackgroundColor = (elem) => {
|
||||
|
||||
let backgroundColor;
|
||||
while (parent && parent.tagName.toLowerCase() !== 'body') {
|
||||
if(parent instanceof Element) {
|
||||
if (parent instanceof Element) {
|
||||
const computedStyle = getComputedStyle(parent);
|
||||
backgroundColor = computedStyle.backgroundColor;
|
||||
|
||||
|
Reference in New Issue
Block a user