|
@@ -214,7 +214,7 @@
|
|
|
|
|
|
function download(src, filename) {
|
|
|
const anchor = document.createElement("a");
|
|
|
- anchor.href = typeof src === "string" ? src : URL.createObjectURL(new Blob([src]));
|
|
|
+ anchor.href = typeof src === "string" ? "{{ prefix | safe }}" + src : URL.createObjectURL(new Blob([src]));
|
|
|
anchor.target = "_blank";
|
|
|
anchor.download = filename || "";
|
|
|
document.body.appendChild(anchor);
|