From a83499614d555a0dbdc1b90727a23bb0f8d63c6b Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 5 Oct 2023 22:43:26 +0200 Subject: [PATCH] Refactoring: use variable instead of hardcoded URL --- src/UI/SpecialVisualizations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UI/SpecialVisualizations.ts b/src/UI/SpecialVisualizations.ts index a0bc0909f..6867119cd 100644 --- a/src/UI/SpecialVisualizations.ts +++ b/src/UI/SpecialVisualizations.ts @@ -969,7 +969,7 @@ export default class SpecialVisualizations { } let challenge = Stores.FromPromise( Utils.downloadJsonCached( - `https://maproulette.org/api/v2/challenge/${parentId}`, + `${Maproulette.defaultEndpoint}/challenge/${parentId}`, 24 * 60 * 60 * 1000 ) )