Skip to content

Commit

Permalink
Fix leading space in downloaded files. This made osm.xml files invali…
Browse files Browse the repository at this point in the history
…d and caused really confusing import problems
  • Loading branch information
dabreegster committed Mar 22, 2024
1 parent 876555f commit 1c4680a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function downloadGeneratedFile(filename: string, textInput: string) {
var element = document.createElement("a");
element.setAttribute(
"href",
"data:text/plain;charset=utf-8, " + encodeURIComponent(textInput),
"data:text/plain;charset=utf-8," + encodeURIComponent(textInput),
);
element.setAttribute("download", filename);
document.body.appendChild(element);
Expand Down

0 comments on commit 1c4680a

Please sign in to comment.