mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-14 09:16:05 +01:00
fix js download filename
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user