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
|
||||
swup.on("contentReplaced", () => {
|
||||
initBlocks();
|
||||
});
|
||||
|
||||
initBlocks();
|
||||
swup.scrollTo(document.getElementById("#contact")); // TODO remove
|
||||
initMapbox();
|
||||
});
|
||||
|
||||
initBlocks();
|
||||
initMapbox();
|
||||
});
|
||||
|
||||
|
|
Reference in New Issue