initialise mapbox on contentReplaced event
This commit is contained in:
parent
560b6d91ba
commit
5d174994c8
|
@ -57,10 +57,10 @@ window.addEventListener("DOMContentLoaded", () => {
|
||||||
// DOMContentLoaded is not triggered on page reloads via swup.js
|
// DOMContentLoaded is not triggered on page reloads via swup.js
|
||||||
swup.on("contentReplaced", () => {
|
swup.on("contentReplaced", () => {
|
||||||
initBlocks();
|
initBlocks();
|
||||||
});
|
initMapbox();
|
||||||
|
});
|
||||||
initBlocks();
|
|
||||||
swup.scrollTo(document.getElementById("#contact")); // TODO remove
|
initBlocks();
|
||||||
initMapbox();
|
initMapbox();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Reference in New Issue