Skip to content

Commit

Permalink
Merge branch 'SebastianHanfland:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
SternfahrtMuc authored Apr 15, 2024
2 parents 65f97a4 + f4308a7 commit d67e0a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/src/planner/segments/FileDownloader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface DropdownProps {
}

const downloadFile = (name: string, content: string) => {
const blob = new Blob([content], { type: name.includes('.gpx') ? 'gpx' : 'json' });
const blob = new Blob([content], { type: name.includes('.gpx') ? 'application/gpx+xml' : 'application/json' });
FileSaver.saveAs(blob, name);
};

Expand Down
2 changes: 1 addition & 1 deletion website/src/planner/tracks/CalculatedFilesDownloader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const downloadFilesInZip = (calculatedTracks: { content: string; filename
if (usedFilenames.includes(intendedFileName)) {
intendedFileName += `(${conflictCounter++})`;
}
zip.file(`${intendedFileName}.gpx`, new Blob([track.content], { type: 'gpx' }));
zip.file(`${intendedFileName}.gpx`, new Blob([track.content], { type: 'application/gpx+xml' }));
usedFilenames.push(intendedFileName);
});
zip.generateAsync({ type: 'blob' }).then(function (content) {
Expand Down

0 comments on commit d67e0a2

Please sign in to comment.