From e29515691d587affb355f08b461c2478a55c2fbf Mon Sep 17 00:00:00 2001 From: Simon Spannagel Date: Sat, 21 Mar 2020 18:07:55 +0100 Subject: [PATCH] Favorites import: also allow .geojson mime type for file picker Signed-off-by: Simon Spannagel --- src/favoritesController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/favoritesController.js b/src/favoritesController.js index a5d497b05..798003faa 100644 --- a/src/favoritesController.js +++ b/src/favoritesController.js @@ -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 ); });