mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-12-02 18:12:11 +00:00
update extension api
This commit is contained in:
13
website/src/routes/[[language]]/app/+layout.svelte
Normal file
13
website/src/routes/[[language]]/app/+layout.svelte
Normal file
@@ -0,0 +1,13 @@
|
||||
<script lang="ts">
|
||||
import { browser } from '$app/environment';
|
||||
import { extensionAPI } from '$lib/components/map/layer-control/extension-api';
|
||||
import type { Snippet } from 'svelte';
|
||||
|
||||
let { children }: { children: Snippet } = $props();
|
||||
|
||||
if (browser) {
|
||||
extensionAPI.init();
|
||||
}
|
||||
</script>
|
||||
|
||||
{@render children()}
|
||||
Reference in New Issue
Block a user