Skip to content

Commit

Permalink
Fix download name
Browse files Browse the repository at this point in the history
  • Loading branch information
Intrinsically-Sublime authored May 6, 2024
1 parent badfdc1 commit 12006e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 2d-gaps-mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ function download(){
document.createElement("a")
);
if (matrixName == "my_matrix") {
a.download = "ledmap.json";
a.download = "2d_gaps.json";
} else {
a.download = matrixName + ".ledmap.json";
a.download = matrixName + ".2d_gaps.json";
}

a.href = "data:text/html," + document.getElementById("result").innerText; // Grab the HTML
Expand Down

0 comments on commit 12006e7

Please sign in to comment.