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