From 1cefd4c9a766984b71f41af99dec9ce09eefe42a Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 5 Jun 2024 12:45:42 +0200 Subject: [PATCH] wip: allow to control geodatamine baseUrl from settings --- umap/static/umap/js/modules/importers/geodatamine.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umap/static/umap/js/modules/importers/geodatamine.js b/umap/static/umap/js/modules/importers/geodatamine.js index 2f059389..ea7efac4 100644 --- a/umap/static/umap/js/modules/importers/geodatamine.js +++ b/umap/static/umap/js/modules/importers/geodatamine.js @@ -32,9 +32,9 @@ class Autocomplete extends SingleMixin(BaseAjax) { } export class Importer { - constructor() { + constructor(options) { this.name = 'GeoDataMine' - this.baseUrl = 'https://geodatamine.fr' + this.baseUrl = options?.url || 'https://geodatamine.fr' } async open(importer) {