Merge latest GitHub master (embed page #24, card guards, SendGrid) + wire embed page to the drop-in
The team's /embed/map iframe page now loads its bundles from /js/doxa-maps-build/doxa-maps/<bundle>/<bundle>.js (the old flat /js paths were retired). Everything else from master merges clean.
This commit is contained in:
parent
c1d21e86fa
commit
65d1997bd4
1 changed files with 4 additions and 1 deletions
|
|
@ -160,7 +160,10 @@
|
|||
|
||||
// ── Load the bundle (registers the custom element) ───────────────────
|
||||
const s = document.createElement('script');
|
||||
s.src = isResearch ? '/js/doxa-research-map.js' : '/js/doxa-simple-map.js';
|
||||
// Bundles live in the doxa-maps-build drop-in (one output folder under /js).
|
||||
s.src = isResearch
|
||||
? '/js/doxa-maps-build/doxa-maps/doxa-research-map/doxa-research-map.js'
|
||||
: '/js/doxa-maps-build/doxa-maps/doxa-simple-map/doxa-simple-map.js';
|
||||
s.onerror = () => showError('<strong>Could not load the map bundle</strong> <code>' + s.src + '</code>.');
|
||||
document.head.appendChild(s);
|
||||
})();
|
||||
|
|
|
|||
Loading…
Reference in a new issue