From 7a39529e2c20faa7153b8ffe932842e30b46aeb4 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Thu, 31 Oct 2024 03:18:27 +0100 Subject: [PATCH] Replaced config dependency with options argument. --- geo.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geo.mjs b/geo.mjs index af36bf8..df12279 100644 --- a/geo.mjs +++ b/geo.mjs @@ -32,7 +32,7 @@ export async function resolvePlace(query, context, options = {}) { // https://operations.osmfoundation.org/policies/nominatim/ const res = await context.unprint.get(`https://nominatim.openstreetmap.org/search?q=${encodeURI(query)}&format=json&accept-language=en&addressdetails=1`, { headers: { - 'User-Agent': context.config.location.userAgent, + 'User-Agent': options.userAgent, }, interval: 1000, concurrency: 1,