forked from MapComplete/MapComplete
Scripts: exclude 'statistics' from the android build
This commit is contained in:
parent
03ae26103c
commit
434b8004e9
2 changed files with 14 additions and 5 deletions
|
|
@ -97,6 +97,8 @@
|
|||
let isAndroid = AndroidPolyfill.inAndroid
|
||||
let nrOfFailedImages = ImageUploadQueue.singleton.imagesInQueue
|
||||
let failedImagesOpen = pg.failedImages
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<div class="low-interaction flex h-full flex-col overflow-hidden" class:hidden={!$shown}>
|
||||
|
|
@ -219,9 +221,9 @@
|
|||
|
||||
<a
|
||||
class="flex"
|
||||
href={$isAndroid
|
||||
? "https://mapcomplete.org/studio"
|
||||
: window.location.protocol + "//" + window.location.host + "/studio.html"}
|
||||
href={($isAndroid
|
||||
? "https://mapcomplete.org"
|
||||
: ".")+"/studio.html"}
|
||||
>
|
||||
<Pencil class="mr-2 h-6 w-6" />
|
||||
<Tr t={Translations.t.general.morescreen.createYourOwnTheme} />
|
||||
|
|
@ -273,7 +275,8 @@
|
|||
</a>
|
||||
|
||||
{#if !state.theme}
|
||||
<a class="flex" href={`./statistics.html`} target="_blank">
|
||||
<a class="flex" href={($isAndroid ? "https://mapcomplete.org" : ".") +`/statistics.html`}
|
||||
target="_blank">
|
||||
<ChartBar class="h-6 w-6" />
|
||||
<Tr
|
||||
t={Translations.t.general.attribution.openStatistics.Subs({ theme: "MapComplete" })}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue