wip: allow to control geodatamine baseUrl from settings

This commit is contained in:
Yohan Boniface 2024-06-05 12:45:42 +02:00
parent d35e72dab9
commit 1cefd4c9a7

View file

@ -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) {