diff --git a/src/redux/user/sagas.ts b/src/redux/user/sagas.ts index 8249706..43f8b7f 100644 --- a/src/redux/user/sagas.ts +++ b/src/redux/user/sagas.ts @@ -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()); } diff --git a/src/utils/gpx.ts b/src/utils/gpx.ts index db71a08..1a70c09 100644 --- a/src/utils/gpx.ts +++ b/src/utils/gpx.ts @@ -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` ) );