Regression for the GPX export when running in a browser.

This commit is contained in:
Eric van der Vlist 2022-10-02 23:26:18 +02:00
parent d85f5d3f95
commit 52b03d8331
1 changed files with 3 additions and 5 deletions

View File

@ -101,11 +101,9 @@ const GpxExport: React.FC<{ gpx: any }> = (props: { gpx: any }) => {
<IonButton id='gpx-export-button' onClick={download}>
<IonIcon icon={cloudDownload} title='Export' slot='icon-only' />
</IonButton>
{isCapacitor && (
<a className='hidden' download={downloadName} ref={hiddenLinkElement}>
download
</a>
)}
<a className='hidden' download={downloadName} ref={hiddenLinkElement}>
download
</a>
</Fragment>
);
};