diff --git a/src/controllers/controller.js b/src/controllers/controller.js index ac2b42304..80d4b8e00 100644 --- a/src/controllers/controller.js +++ b/src/controllers/controller.js @@ -388,6 +388,8 @@ class Controller extends EventEmitter { description: areaObj.description, displayInMatches: areaObj.displayInMatches ?? true, group: areaObj.group, + donateUrl: areaObj.donateUrl, + someCustom: areaObj.someCustom, }) } } else if (areaObj.multipath) { @@ -398,6 +400,8 @@ class Controller extends EventEmitter { description: areaObj.description, displayInMatches: areaObj.displayInMatches ?? true, group: areaObj.group, + donateUrl: areaObj.donateUrl, + someCustom: areaObj.someCustom, }) break } diff --git a/src/lib/geofenceLoader.js b/src/lib/geofenceLoader.js index 88b5dc1d7..5753151f7 100644 --- a/src/lib/geofenceLoader.js +++ b/src/lib/geofenceLoader.js @@ -21,6 +21,8 @@ function getGeofenceFromGEOjson(config, rawdata) { description: properties.description || '', userSelectable: !!(properties.userSelectable ?? true), displayInMatches: !!(properties.displayInMatches ?? true), + donateUrl: properties.donateUrl || '', + someCustom: properties.someCustom || '', } geofenceGEOjson[i].geometry.coordinates[0].forEach((coordinates) => newFence.path.push([coordinates[1], coordinates[0]])) @@ -40,6 +42,8 @@ function getGeofenceFromGEOjson(config, rawdata) { description: properties.description || '', userSelectable: !!(properties.userSelectable ?? true), displayInMatches: !!(properties.displayInMatches ?? true), + donateUrl: properties.donateUrl || '', + someCustom: properties.someCustom || '', } for (const coordList of geofenceGEOjson[i].geometry.coordinates) { @@ -86,4 +90,4 @@ function readAllGeofenceFiles(config) { return geofence } -module.exports = { readAllGeofenceFiles } \ No newline at end of file +module.exports = { readAllGeofenceFiles }