[Chart download] Add .svg to file name, fix chart background colors

This commit is contained in:
nymkappa
2022-05-09 11:01:51 +02:00
parent 73406d36b0
commit 60ed32ffe8
10 changed files with 55 additions and 46 deletions

View File

@@ -79,7 +79,7 @@ export const formatterXAxisTimeCategory = (
};
export const download = (href, name) => {
var a = document.createElement('a');
const a = document.createElement('a');
a.download = name;
a.href = href;
document.body.appendChild(a);