@beyonk/svelte-mapbox
Advanced tools
+1
-1
| { | ||
| "name": "@beyonk/svelte-mapbox", | ||
| "version": "12.1.3", | ||
| "version": "12.1.4", | ||
| "devDependencies": { | ||
@@ -5,0 +5,0 @@ "@beyonk/eslint-config": "^9.1.4", |
@@ -7,3 +7,3 @@ function load (assets, cb) { | ||
| if (type === 'script') { | ||
| if (window.mapboxgl) { | ||
| if (existing.dataset.loaded) { | ||
| cb() | ||
@@ -23,3 +23,6 @@ } else { | ||
| tag.src = value | ||
| tag.onload = () => cb() | ||
| tag.onload = () => { | ||
| tag.dataset.loaded = 'true' | ||
| cb() | ||
| } | ||
| } else { | ||
@@ -26,0 +29,0 @@ tag.rel = 'stylesheet' |
47715
0.13%853
0.35%