From 2172c27884d9d23dc3c07c3a958d40a703d76ba7 Mon Sep 17 00:00:00 2001 From: John Hess Date: Tue, 18 Feb 2025 15:43:52 -0600 Subject: [PATCH] use relative links from maps.js so demo and native both work --- assets/js/maps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/maps.js b/assets/js/maps.js index a0e016d..2f3e916 100644 --- a/assets/js/maps.js +++ b/assets/js/maps.js @@ -49,7 +49,7 @@ function renderMaps(files) { // If OSM is in the F-Droid repo, show the download button // and point to proper apk with proper size. const getOsm = async () => { - repoRoot = '/usb-butter/appstore/fdroid/repo/'; + repoRoot = '../usb-butter/appstore/fdroid/repo/'; json_url = repoRoot + 'index-v1.json'; const response = fetch(json_url).then(async (response) => { const ix = await response.json(); @@ -70,4 +70,4 @@ const getOsm = async () => { } getOsm() -getMaps('/usb-butter/osm-map-files/'); \ No newline at end of file +getMaps('../usb-butter/osm-map-files/'); \ No newline at end of file