Skip to content

Commit

Permalink
Favorites import: also allow .geojson mime type for file picker
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Spannagel <[email protected]>
  • Loading branch information
Simon Spannagel committed Mar 21, 2020
1 parent fe50060 commit e295156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/favoritesController.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ FavoritesController.prototype = {
// import favorites
$('body').on('click', '#import-favorites', function(e) {
OC.dialogs.filepicker(
t('maps', 'Import favorites from gpx (OsmAnd, Nextcloud Maps) or kmz/kml (F-Droid Maps, Maps.me, Marble)'),
t('maps', 'Import favorites from GeoJSON, gpx (OsmAnd, Nextcloud Maps) or kmz/kml (F-Droid Maps, Maps.me, Marble)'),
function(targetPath) {
that.importFavorites(targetPath);
},
false,
['application/gpx+xml', 'application/vnd.google-earth.kmz', 'application/vnd.google-earth.kml+xml', 'application/json'],
['application/gpx+xml', 'application/vnd.google-earth.kmz', 'application/vnd.google-earth.kml+xml', 'application/json', 'application/geo+json'],
true
);
});
Expand Down

0 comments on commit e295156

Please sign in to comment.