use relative links from maps.js so demo and native both work
This commit is contained in:
parent
0e34187b29
commit
2172c27884
1 changed files with 2 additions and 2 deletions
|
|
@ -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/');
|
||||
getMaps('../usb-butter/osm-map-files/');
|
||||
Loading…
Add table
Add a link
Reference in a new issue