initialise mapbox on contentReplaced event

This commit is contained in:
Ray Elliott 2020-03-30 20:33:13 +00:00
parent 560b6d91ba
commit 5d174994c8
1 changed files with 1 additions and 1 deletions

View File

@ -57,10 +57,10 @@ window.addEventListener("DOMContentLoaded", () => {
// DOMContentLoaded is not triggered on page reloads via swup.js
swup.on("contentReplaced", () => {
initBlocks();
initMapbox();
});
initBlocks();
swup.scrollTo(document.getElementById("#contact")); // TODO remove
initMapbox();
});