Change filename for download
This commit is contained in:
@@ -296,7 +296,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
if (img && img.src) {
|
||||
const link = document.createElement('a');
|
||||
link.href = img.src;
|
||||
link.download = `qr-manifesto-${Date.now()}.png`;
|
||||
link.download = `qr-damage-${Date.now()}.png`;
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
link.remove();
|
||||
@@ -310,7 +310,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
const url = URL.createObjectURL(blob);
|
||||
const link = document.createElement('a');
|
||||
link.href = url;
|
||||
link.download = `qr-manifesto-${Date.now()}.svg`;
|
||||
link.download = `qr-damage-${Date.now()}.svg`;
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
link.remove();
|
||||
|
||||
Reference in New Issue
Block a user