BSlideOverlay fix layout not filling in widescreen and Map fix only in production
This commit is contained in:
@@ -7,10 +7,12 @@
|
||||
import { onMount, type Snippet } from "svelte";
|
||||
import type { SvelteHTMLElements } from "svelte/elements";
|
||||
|
||||
// Fix bundling bug for leaflet default marker icon on production
|
||||
L.Icon.Default.prototype.options.iconUrl = lmiUrl;
|
||||
L.Icon.Default.prototype.options.iconRetinaUrl = lmi2Url;
|
||||
L.Icon.Default.prototype.options.shadowUrl = lmsUrl;
|
||||
if (import.meta.env.MODE === 'production') {
|
||||
// Fix bundling bug for leaflet default marker icon on production
|
||||
L.Icon.Default.prototype.options.iconUrl = lmiUrl;
|
||||
L.Icon.Default.prototype.options.iconRetinaUrl = lmi2Url;
|
||||
L.Icon.Default.prototype.options.shadowUrl = lmsUrl;
|
||||
}
|
||||
|
||||
type Props = {
|
||||
x: number,
|
||||
|
||||
Reference in New Issue
Block a user