diff --git a/modules/rmaps/components/folk-map-viewer.ts b/modules/rmaps/components/folk-map-viewer.ts index 868a8ed..6df9c44 100644 --- a/modules/rmaps/components/folk-map-viewer.ts +++ b/modules/rmaps/components/folk-map-viewer.ts @@ -23,8 +23,8 @@ import { startPresenceHeartbeat } from '../../../shared/collab-presence'; // MapLibre loaded via CDN — use window access with type assertion -const MAPLIBRE_CSS = "https://unpkg.com/maplibre-gl@4.1.2/dist/maplibre-gl.css"; -const MAPLIBRE_JS = "https://unpkg.com/maplibre-gl@4.1.2/dist/maplibre-gl.js"; +const MAPLIBRE_CSS = "https://cdn.jsdelivr.net/npm/maplibre-gl@4.1.2/dist/maplibre-gl.css"; +const MAPLIBRE_JS = "https://cdn.jsdelivr.net/npm/maplibre-gl@4.1.2/dist/maplibre-gl.js"; const OSM_ATTRIBUTION = '© OpenStreetMap contributors'; diff --git a/modules/rmaps/mod.ts b/modules/rmaps/mod.ts index 68606aa..9e7b050 100644 --- a/modules/rmaps/mod.ts +++ b/modules/rmaps/mod.ts @@ -274,7 +274,9 @@ routes.get("/", (c) => { spaceSlug: space, modules: getModuleInfoList(), body: ``, - scripts: ``, + scripts: ` + + `, styles: ``, })); }); @@ -291,7 +293,9 @@ routes.get("/:room", (c) => { modules: getModuleInfoList(), styles: ``, body: ``, - scripts: ``, + scripts: ` + + `, })); });