use relative links from maps.js so demo and native both work

This commit is contained in:
John Hess 2025-02-18 15:43:52 -06:00
parent 0e34187b29
commit 2172c27884

View file

@ -49,7 +49,7 @@ function renderMaps(files) {
// If OSM is in the F-Droid repo, show the download button // If OSM is in the F-Droid repo, show the download button
// and point to proper apk with proper size. // and point to proper apk with proper size.
const getOsm = async () => { const getOsm = async () => {
repoRoot = '/usb-butter/appstore/fdroid/repo/'; repoRoot = '../usb-butter/appstore/fdroid/repo/';
json_url = repoRoot + 'index-v1.json'; json_url = repoRoot + 'index-v1.json';
const response = fetch(json_url).then(async (response) => { const response = fetch(json_url).then(async (response) => {
const ix = await response.json(); const ix = await response.json();
@ -70,4 +70,4 @@ const getOsm = async () => {
} }
getOsm() getOsm()
getMaps('/usb-butter/osm-map-files/'); getMaps('../usb-butter/osm-map-files/');