mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
small fix for legend font load
This commit is contained in:
parent
6dc8cad13e
commit
9301631537
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ function getFontsList(svg) {
|
|||
const font = this.dataset.font;
|
||||
if (font) fontsInUse.push(font);
|
||||
});
|
||||
if (legend.node().hasChildNodes()) fontsInUse.push(legend.attr("data-font"));
|
||||
if (legend?.node()?.hasChildNodes()) fontsInUse.push(legend.attr("data-font"));
|
||||
|
||||
return [...new Set(fontsInUse)];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue