mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
fixed filename saving error
This commit is contained in:
parent
3ace7b157a
commit
f664eb53e7
2 changed files with 2 additions and 2 deletions
|
@ -415,7 +415,7 @@ function* cropAShotSaga(params) {
|
|||
yield call(getCropData, params);
|
||||
const canvas = document.getElementById('renderer') as HTMLCanvasElement;
|
||||
|
||||
downloadCanvas(canvas, (title || address));
|
||||
downloadCanvas(canvas, (title || address).replace('.', ''));
|
||||
|
||||
return yield put(hideRenderer());
|
||||
}
|
||||
|
|
|
@ -47,6 +47,6 @@ export const getGPXString = ({ route, title, stickers }: IGetGPXString): string
|
|||
export const downloadGPXTrack = ({ track, title }: { track: string, title?: string }): void => (
|
||||
saveAs(
|
||||
new Blob([track], { type: 'application/gpx+xml;charset=utf-8' }),
|
||||
`${title || 'track'}.gpx`
|
||||
`${(title || 'track').replace('.', '')}.gpx`
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue