mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-14 01:06:03 +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') {
|
||||
let element = document.createElement('a');
|
||||
element.setAttribute('href', response.files[key]);
|
||||
element.setAttribute('download', response.files[key]);
|
||||
element.setAttribute('download', '');
|
||||
|
||||
element.style.display = 'none';
|
||||
document.body.appendChild(element);
|
||||
|
||||
Reference in New Issue
Block a user