npm run lint:fix

This commit is contained in:
wattroll
2022-04-06 21:40:40 +03:00
parent 24d50fd773
commit b4eb4edcae
10 changed files with 437 additions and 427 deletions

View File

@@ -577,11 +577,14 @@ export function getFilterIdx(
}
export function downloadAsFile(filename, content) {
let element = document.createElement('a');
element.setAttribute('href', `data:application/octet-stream;charset=utf-8,${encodeURIComponent(content)}`);
element.setAttribute('download', filename);
let element = document.createElement("a");
element.setAttribute(
"href",
`data:application/octet-stream;charset=utf-8,${encodeURIComponent(content)}`
);
element.setAttribute("download", filename);
element.style.display = 'none';
element.style.display = "none";
document.body.appendChild(element);
element.click();