app/assets/js/app/setup.js in coveragebook_components-0.8.1 vs app/assets/js/app/setup.js in coveragebook_components-0.8.2
- old
+ new
@@ -1,12 +1,13 @@
import { navigateTo } from "@helpers/location";
// Global JS navigation handler.
// Optionally uses Turbo for the page navigation.
-window.addEventListener("navigate", (event) => {
- const { url, turbo, action } = event.detail;
+window.addEventListener("app:navigate", (event) => {
+ const url = event.detail.url;
if (url) {
- navigateTo(url, { turbo, action });
+ delete event.detail.url;
+ navigateTo(url, event.detail);
}
});
// Uodate the value of the `--app-height` css variable
// when the viewport size changes. To help work around the