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