mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-11-09 06:37:07 +00:00
fix map loaded twice
This commit is contained in:
1 parent
25ea9607f2
commit
06e6d7e81e
3 files changed
+22
-18
No files matched your search
@@ -13,19 +13,21 @@
|
||||
}
|
||||
|
||||
const appRoutes = ['/[...language]/app', '/[...language]/embed'];
|
||||
|
||||
$: showNavAndFooter = $page.route.id === null || !appRoutes.includes($page.route.id);
|
||||
</script>
|
||||
|
||||
<Head />
|
||||
<ModeWatcher />
|
||||
|
||||
{#if !$isLoading}
|
||||
{#if $page.route.id !== null && appRoutes.includes($page.route.id)}
|
||||
<slot />
|
||||
{:else}
|
||||
{#if showNavAndFooter}
|
||||
<Nav />
|
||||
<main>
|
||||
<slot />
|
||||
</main>
|
||||
{/if}
|
||||
<main>
|
||||
<slot />
|
||||
</main>
|
||||
{#if showNavAndFooter}
|
||||
<Footer />
|
||||
{/if}
|
||||
{/if}
|
||||
Reference in new issue
Block a user