mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-11-09 06:37:07 +00:00
update extension api
This commit is contained in:
1 parent
50a5cb23f5
commit
110f23bdf1
5 files changed
+63
-42
No files matched your search
@@ -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