fix js download filename

This commit is contained in:
Ricardo
2020-05-07 21:38:15 +01:00
parent 59e8cbecb2
commit 41e73821f9

View File

@@ -66,7 +66,7 @@ body.on('click', '[data-export-scss]', (event) => {
if (key === 'download') { if (key === 'download') {
let element = document.createElement('a'); let element = document.createElement('a');
element.setAttribute('href', response.files[key]); element.setAttribute('href', response.files[key]);
element.setAttribute('download', response.files[key]); element.setAttribute('download', '');
element.style.display = 'none'; element.style.display = 'none';
document.body.appendChild(element); document.body.appendChild(element);