Skip to content

Commit 8d16574

Browse files
committed
small fixes
1 parent 3585439 commit 8d16574

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

application/templates/entity.html

-2
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@ <h3 class="govuk-heading-s">{{ type|capitalize }}</h3>
453453
const url = URL.createObjectURL(blob);
454454
const a = document.createElement("a");
455455
a.href = url;
456-
a.download = "geometry.json"; // Optional: specify the file name
457456
document.body.appendChild(a);
458457
a.click();
459458
document.body.removeChild(a);
@@ -462,7 +461,6 @@ <h3 class="govuk-heading-s">{{ type|capitalize }}</h3>
462461
URL.revokeObjectURL(url);
463462
} catch (error) {
464463
console.error("Error during download:", error);
465-
alert("An error occurred while downloading the file.");
466464
} finally {
467465
// Restore button and hide spinner
468466
downloadButton.disabled = false;

0 commit comments

Comments
 (0)