InfoPanel: downloaded SVGs now contain appropriate weight in filename

This commit is contained in:
rektdeckard
2020-08-10 16:06:11 -04:00
parent c367bd79d1
commit d924ab8fc9

View File

@@ -76,7 +76,7 @@ const InfoPanel: React.FC<InfoPanelProps> = (props) => {
event.currentTarget.blur();
if (!ref.current?.outerHTML) return;
const blob = new Blob([ref.current.outerHTML]);
saveAs(blob, `${name}.svg`);
saveAs(blob, `${name}${weight === "regular" ? "" : `-${weight}`}.svg`);
};
const handleCopySVG = (